@@ -30,10 +30,7 @@ export function GeneralSettings() {
|
|||||||
const onFinish = (values: { currency: string }) => {
|
const onFinish = (values: { currency: string }) => {
|
||||||
// Check if the currency has changed
|
// Check if the currency has changed
|
||||||
if (settings.data?.currency.value !== JSON.stringify(values.currency)) {
|
if (settings.data?.currency.value !== JSON.stringify(values.currency)) {
|
||||||
setCurrency.mutate({
|
setCurrency.mutate(values.currency);
|
||||||
key: "currency",
|
|
||||||
value: JSON.stringify(values.currency),
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user