diff --git a/src/context/revoltjs/CheckAuth.tsx b/src/context/revoltjs/CheckAuth.tsx index 4ec6142b..4064d264 100644 --- a/src/context/revoltjs/CheckAuth.tsx +++ b/src/context/revoltjs/CheckAuth.tsx @@ -13,7 +13,7 @@ interface Props { export const CheckAuth = (props: Props) => { const auth = useApplicationState().auth; const client = useClient(); - const ready = auth.isLoggedIn() && typeof client?.user !== "undefined"; + const ready = auth.isLoggedIn() && !!client?.user; if (props.auth && !ready) { return ;