Think it might be ready to deploy. I'm sure there are a lot of bugs, but I at least am no longe finding them
This commit is contained in:
@ -10,6 +10,7 @@ import React, {
|
||||
} from 'react';
|
||||
import {
|
||||
getProfile,
|
||||
getProfileWithAvatar,
|
||||
getUser,
|
||||
updateProfile as updateProfileAction,
|
||||
} from '@/lib/hooks';
|
||||
@ -50,7 +51,7 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => {
|
||||
}
|
||||
|
||||
const userResponse = await getUser();
|
||||
const profileResponse = await getProfile();
|
||||
const profileResponse = await getProfileWithAvatar();
|
||||
|
||||
if (!userResponse.success || !profileResponse.success) {
|
||||
setUser(null);
|
||||
|
Reference in New Issue
Block a user