From e69185710a083562cb5b515406d9f5fc13f01fe5 Mon Sep 17 00:00:00 2001
From: Greg Konush <12027037+gregkonush@users.noreply.github.com>
Date: Mon, 23 Dec 2024 20:49:00 -0800
Subject: [PATCH] fix: remove conditional render
---
apps/findbobastore/src/app/page.tsx | 2 +-
apps/findbobastore/src/components/map-container.tsx | 2 +-
apps/findbobastore/src/components/map-view.tsx | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/apps/findbobastore/src/app/page.tsx b/apps/findbobastore/src/app/page.tsx
index 68893f1..21082cf 100644
--- a/apps/findbobastore/src/app/page.tsx
+++ b/apps/findbobastore/src/app/page.tsx
@@ -7,7 +7,7 @@ export default async function Home() {
Find Boba Store
- {mapboxToken && }
+
)
}
diff --git a/apps/findbobastore/src/components/map-container.tsx b/apps/findbobastore/src/components/map-container.tsx
index 797bf44..2e76a6a 100644
--- a/apps/findbobastore/src/components/map-container.tsx
+++ b/apps/findbobastore/src/components/map-container.tsx
@@ -11,6 +11,6 @@ const MapView = dynamic(() => import('./map-view'), {
),
})
-export function MapContainer({ token }: { token: string }) {
+export function MapContainer({ token }: { token: string | undefined }) {
return
}
diff --git a/apps/findbobastore/src/components/map-view.tsx b/apps/findbobastore/src/components/map-view.tsx
index ea9fa0f..403d99e 100644
--- a/apps/findbobastore/src/components/map-view.tsx
+++ b/apps/findbobastore/src/components/map-view.tsx
@@ -237,7 +237,7 @@ function MapOverlay({ store }: { store: BobaStore | null }) {
)
}
-export function MapView({ token }: { token: string }) {
+export function MapView({ token }: { token: string | undefined }) {
const mapContainer = useRef(null)
const map = useRef(null)
const [selectedStore, setSelectedStore] = useState(null)