From 069aeddaf97bd54bd5a033fcdd6a60e989f03fa0 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 5 Apr 2023 01:08:51 -0600 Subject: [PATCH] Fix undefined signedIn --- client/src/context/authContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/context/authContext.tsx b/client/src/context/authContext.tsx index 60a4159..19a1ddd 100644 --- a/client/src/context/authContext.tsx +++ b/client/src/context/authContext.tsx @@ -77,7 +77,7 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => { ["friendId", "friendName"].map((x) => localStorage.removeItem(x)); return false; } - return signedIn; + return !!signedIn; }); } return sessionOver;