not smooth still but decent enough

This commit is contained in:
talksik
2022-05-06 07:06:09 -05:00
parent 70ddca4c29
commit 974a5a40fb
2 changed files with 11 additions and 4 deletions
@@ -19,11 +19,12 @@ export default function ProtectedRoute({
isError: serverFailure,
isLoading: serverLoading,
isSuccess: isServerHealthy,
error,
error: serverStatusError,
} = useServerCheck();
const { isLoading, isError, isFetching, isSuccess, refetch } =
useAuthCheck(isServerHealthy);
const { isLoading, isError, isFetching, isSuccess, refetch } = useAuthCheck(
!serverLoading
);
useEffect(() => {
// on load of this, if we already have jwt tokens in store,