diff --git a/frontend/src/routes/edit/profile/+page.svelte b/frontend/src/routes/edit/profile/+page.svelte index 74c67f3..b6fda9f 100644 --- a/frontend/src/routes/edit/profile/+page.svelte +++ b/frontend/src/routes/edit/profile/+page.svelte @@ -146,6 +146,8 @@ }; const customPreferencesEqual = (obj1: CustomPreferences, obj2: CustomPreferences) => { + if (Object.keys(obj2).some((key) => !(key in obj1))) return false; + return Object.keys(obj1) .map((key) => { if (!(key in obj2)) return false;