fmt: rename fetchProfile to authenticate

This commit is contained in:
2025-05-29 12:35:07 +02:00
parent 3dd91cf238
commit e4d83e75a0

View File

@ -16,7 +16,7 @@ const AuthLayout = () => {
const hasAccounts = useAuth((state) => state.accounts.length > 0); const hasAccounts = useAuth((state) => state.accounts.length > 0);
const fetchingProfile = useAuth((state) => state.authenticating); const fetchingProfile = useAuth((state) => state.authenticating);
const fetchProfile = useAuth((state) => state.authenticate); const authenticate = useAuth((state) => state.authenticate);
const signInRequired = useAuth((state) => state.signInRequired); const signInRequired = useAuth((state) => state.signInRequired);
@ -59,9 +59,9 @@ const AuthLayout = () => {
useEffect(() => { useEffect(() => {
if (dbConnected && !loadingAccounts && activeAccount) { if (dbConnected && !loadingAccounts && activeAccount) {
fetchProfile(); authenticate();
} }
}, [activeAccount, dbConnected, fetchProfile, loadingAccounts]); }, [activeAccount, dbConnected, authenticate, loadingAccounts]);
useEffect(() => { useEffect(() => {
if (!signInRequired && location.state?.from) { if (!signInRequired && location.state?.from) {