From 1f8e67b59c823b131c31d7039470b6df201a1420 Mon Sep 17 00:00:00 2001 From: Greg Konush <12027037+gregkonush@users.noreply.github.com> Date: Mon, 23 Dec 2024 21:06:18 -0800 Subject: [PATCH] feat: check if token is undefined (#644) --- apps/findbobastore/src/components/map-view.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/findbobastore/src/components/map-view.tsx b/apps/findbobastore/src/components/map-view.tsx index 403d99e..b8e8d30 100644 --- a/apps/findbobastore/src/components/map-view.tsx +++ b/apps/findbobastore/src/components/map-view.tsx @@ -316,6 +316,8 @@ export function MapView({ token }: { token: string | undefined }) { const initializeMap = useCallback(async () => { if (!mapContainer.current) return + if (!token) return + console.log('token', token) try { // Try to get user location first