fix(medusa-react): fix useAdminAddStoreCurrency hook (#5074)
This commit is contained in:
5
.changeset/eighty-spiders-prove.md
Normal file
5
.changeset/eighty-spiders-prove.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"medusa-react": patch
|
||||
---
|
||||
|
||||
fix(medusa-react): fix `useAdminAddStoreCurrency` hook
|
||||
@@ -32,7 +32,7 @@ export const useAdminAddStoreCurrency = (
|
||||
const queryClient = useQueryClient()
|
||||
|
||||
return useMutation(
|
||||
(currency_code: string) => client.admin.store.deleteCurrency(currency_code),
|
||||
(currency_code: string) => client.admin.store.addCurrency(currency_code),
|
||||
buildOptions(queryClient, adminStoreKeys.details(), options)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user