From 1c1ac25857eb0a2db2fb8e98b0bc7b19939ea2a9 Mon Sep 17 00:00:00 2001 From: Craig Lawson Date: Mon, 12 Jan 2026 08:56:24 +0000 Subject: [PATCH] fix saveSettings is currently being called even when validation fails. --- client/src/Pages/v1/Settings/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/Pages/v1/Settings/index.jsx b/client/src/Pages/v1/Settings/index.jsx index e950dfd41..c37a8b1bc 100644 --- a/client/src/Pages/v1/Settings/index.jsx +++ b/client/src/Pages/v1/Settings/index.jsx @@ -168,6 +168,7 @@ const Settings = () => { }); if (!error || error.details.length === 0) { setErrors({}); + saveSettings(settingsData?.settings); } else { const newErrors = {}; error.details.forEach((err) => { @@ -176,7 +177,6 @@ const Settings = () => { setErrors(newErrors); } - saveSettings(settingsData?.settings); }; return (