mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 15:00:30 +03:00
Fix incorrect logic when checking for profile field changes
This commit is contained in:
parent
5bc9654d32
commit
af9460ef8b
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ export function ProfileFieldContext<C>({
|
||||||
Object.entries(fields).find(
|
Object.entries(fields).find(
|
||||||
([key, value]) =>
|
([key, value]) =>
|
||||||
// deep comparison is necessary here because field values can be any JSON type
|
// deep comparison is necessary here because field values can be any JSON type
|
||||||
deepCompare(fieldDefaults[key as keyof ExtendedProfile], value)
|
!deepCompare(fieldDefaults[key as keyof ExtendedProfile], value)
|
||||||
) !== undefined,
|
) !== undefined,
|
||||||
[fields, fieldDefaults]
|
[fields, fieldDefaults]
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue