forked from mirrors/pronouns.cc
fix(frontend): fix save button not showing up when deleting custom preferences (fixes #55)
This commit is contained in:
parent
848d0787a5
commit
bb3d56f548
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue