Skip to content

Commit

Permalink
Fixed fetched meta functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
silversonicaxel committed May 6, 2024
1 parent 09e2207 commit 9983285
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/places/[placeId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ type PlaceMeta = FetchedMetadata | null
export default async function PlacePage({ params }: PlacePageProps) {
const place = await getPlaceData(params.placeId)

const placeMeta: PlaceMeta = place.site ? fetchedMeta(place.site || '') : null
const placeMeta: PlaceMeta = place.site
? await fetchedMeta(place.site || '')
: null

return (
<>
Expand Down

0 comments on commit 9983285

Please sign in to comment.