From 3b5fd963ec6f9c0d7dac3092fc9ab95d0af60246 Mon Sep 17 00:00:00 2001 From: Greg Konush <12027037+gregkonush@users.noreply.github.com> Date: Mon, 23 Dec 2024 21:02:39 -0800 Subject: [PATCH] feat: check if token is undefined --- 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