Skip to content

Commit

Permalink
Fix crash on LoginForm
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed May 8, 2024
1 parent be080ef commit e26b547
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/LoginSignUp/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ const LoginForm = ( {
};

useEffect( () => {
const listener1 = navigation.addListener( "blur", blurFields );
const listener2 = navigation.addListener( "transitionEnd", blurFields );
const unsubscribe = navigation.addListener( "blur", blurFields );
return unsubscribe;
}, [navigation] );

return () => {
listener1.remove();
listener2.remove();
};
useEffect( () => {
const unsubscribe = navigation.addListener( "transitionEnd", blurFields );
return unsubscribe;
}, [navigation] );

const login = async ( ) => {
Expand Down

0 comments on commit e26b547

Please sign in to comment.