Skip to content

Commit

Permalink
feat: check if token is undefined (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Dec 24, 2024
1 parent 6864665 commit 1f8e67b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/findbobastore/src/components/map-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f8e67b

Please sign in to comment.