fix(frontend): fix save button not showing up when deleting custom preferences (fixes #55)

This commit is contained in:
Sam 2023-04-23 23:06:53 +02:00
parent 848d0787a5
commit bb3d56f548
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 2 additions and 0 deletions

View File

@ -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;