Skip to content

Commit

Permalink
fix: remove throw (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Dec 24, 2024
1 parent d762bf7 commit ecb5e2f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/findbobastore/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ import { MapContainer } from '@/components/map-container'

export default async function Home() {
const mapboxToken = process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN
if (!mapboxToken) {
throw new Error('Missing NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN')
}
return (
<main className="relative w-full h-screen">
<div className="absolute top-4 left-4 z-10 bg-slate-900/80 px-4 py-2 rounded-lg">
<h1 className="text-xl font-bold text-white">Find Boba Store</h1>
</div>
<MapContainer token={mapboxToken} />
{mapboxToken && <MapContainer token={mapboxToken} />}
</main>
)
}

0 comments on commit ecb5e2f

Please sign in to comment.