Merged in fix/SW-3002-bug (pull request #2615)

fix(SW-3002): fix bug causing hotel page not found

* fix(SW-3002): fix bug causing hotel page not found


Approved-by: Anton Gunnarsson
Approved-by: Linus Flood
This commit is contained in:
Matilda Landström
2025-08-12 06:18:49 +00:00
parent 54e57843d5
commit 5ae69a297e

View File

@@ -1,5 +1,3 @@
import { notFound } from "next/navigation"
import SidePeek from "@scandic-hotels/design-system/SidePeek"
import Image from "@/components/Image"
@@ -28,7 +26,7 @@ export default async function TripAdvisorSidePeek({
const tripAdvisorData = hotelRatings?.tripAdvisor
if (!tripAdvisorData?.reviews.widgetScriptEmbedUrlIframe) {
notFound()
return null
}
const awardsLogos = tripAdvisorData.awards