diff --git a/next/utils/useAccount.tsx b/next/utils/useAccount.tsx index fad176484..10a0bfcc3 100644 --- a/next/utils/useAccount.tsx +++ b/next/utils/useAccount.tsx @@ -531,7 +531,7 @@ export const AccountProvider = ({ children }: { children: ReactNode }) => { // map tier to status, TODO think about dropping global status and using only tier useEffect(() => { - setStatus(mapTierToStatus(userData?.tier)) + setStatus(userData ? mapTierToStatus(userData.tier) : AccountStatus.Idle) }, [userData]) useEffect(() => {