bug fix - settings handlechange

This commit is contained in:
Craig Lawson committed 2026-01-11 21:51:59 +00:00
1 parent 7556086f71
commit e4d101237e
2 files changed
+5 -7

No files matched your search

-7
View File
@@ -57,13 +57,6 @@ const useSaveSettings = ({
}
setSettingsData(settingsResponse.data.data);
// Update Redux state after successful save
if (typeof settings.showURL !== "undefined") {
const { setShowURL } = await import("../../Features/UI/uiSlice.js");
const { default: store } = await import("../../store.js");
store.dispatch(setShowURL(settings.showURL));
}
createToast({ body: t("settingsSuccessSaved") });
} catch (error) {
createToast({ body: t("settingsFailedToSave") });
+5
View File
@@ -168,6 +168,11 @@ const Settings = () => {
}
setSettingsData(newSettingsData);
// Update Redux immediately for UI feedback
if (name === "showURL") {
dispatch(setShowURL(newValue ?? value));
}
};
const handleSave = () => {