mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 06:20:28 +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(
 | 
			
		||||
        ([key, value]) =>
 | 
			
		||||
          // 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,
 | 
			
		||||
    [fields, fieldDefaults]
 | 
			
		||||
  );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue