From eb177d802c7b23c4636afc6a5a51291a6673fe76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 10 Sep 2024 15:23:34 +0200 Subject: [PATCH] fix(SW-303): fix problem with duplicate card --- components/ContentType/HotelPage/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/ContentType/HotelPage/index.tsx b/components/ContentType/HotelPage/index.tsx index ca1203381..ecc9b1de9 100644 --- a/components/ContentType/HotelPage/index.tsx +++ b/components/ContentType/HotelPage/index.tsx @@ -32,7 +32,8 @@ export default async function HotelPage() { activitiesCard, } = hotelData - activitiesCard && MOCK_FACILITIES.push(setActivityCard(activitiesCard)) + const facilitites = [...MOCK_FACILITIES] + activitiesCard && facilitites.push(setActivityCard(activitiesCard)) return (
@@ -52,7 +53,7 @@ export default async function HotelPage() {
- +