From 00cef6d9c9f8013bf3372a70427a0e3d2737c668 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Mon, 29 Jan 2024 14:41:31 -0800 Subject: [PATCH] feat: default search if not signed in --- apps/antalmanac/src/components/MobileHome.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/antalmanac/src/components/MobileHome.tsx b/apps/antalmanac/src/components/MobileHome.tsx index 4ccf9b5c1..73ed18160 100644 --- a/apps/antalmanac/src/components/MobileHome.tsx +++ b/apps/antalmanac/src/components/MobileHome.tsx @@ -19,7 +19,7 @@ export const mobileContext = createContext({ }); const MobileHome = () => { - const [selectedTab, setSelectedTab] = useState(1); + const [selectedTab, setSelectedTab] = useState(localStorage.getItem('userID') ? 0 : 1); const params = useParams(); useEffect(() => {