From 5ae69a297ee7bbb16e58ed1c7a6ea46b3ef75323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 12 Aug 2025 06:18:49 +0000 Subject: [PATCH] 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 --- .../ContentType/HotelPage/SidePeeks/Tripadvisor/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Tripadvisor/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Tripadvisor/index.tsx index 2adfe4f48..019bc3411 100644 --- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Tripadvisor/index.tsx +++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Tripadvisor/index.tsx @@ -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