Fixed being unable to change currency

Resolves #436
This commit is contained in:
Donkie
2024-08-10 11:44:11 +02:00
parent 2e414af9bb
commit 14a22e072f

View File

@@ -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),
});
} }
}; };