Live video on the AT Protocol
79
fork

Configure Feed

Select the types of activity you want to include in your feed.

close login modal on successful auth and it's open

+7
+7
js/app/components/login/login-form.tsx
··· 26 26 const { theme } = useTheme(); 27 27 const loginAction = useStore((state) => state.login); 28 28 const openLoginLink = useStore((state) => state.openLoginLink); 29 + const authStatus = useStore((state) => state.authStatus); 29 30 const loginState = useLogin(); 30 31 const [handle, setHandle] = useState(""); 31 32 const [imageLoading, setImageLoading] = useState(false); ··· 101 102 Alert.alert("Login error", loginState.error); 102 103 } 103 104 }, [loginState?.error]); 105 + 106 + useEffect(() => { 107 + if (authStatus === "loggedIn" && onSuccess) { 108 + onSuccess(); 109 + } 110 + }, [authStatus, onSuccess]); 104 111 105 112 return ( 106 113 <>