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

View file

@ -146,6 +146,8 @@
}; };
const customPreferencesEqual = (obj1: CustomPreferences, obj2: CustomPreferences) => { const customPreferencesEqual = (obj1: CustomPreferences, obj2: CustomPreferences) => {
if (Object.keys(obj2).some((key) => !(key in obj1))) return false;
return Object.keys(obj1) return Object.keys(obj1)
.map((key) => { .map((key) => {
if (!(key in obj2)) return false; if (!(key in obj2)) return false;