From d6b94376b03443a23bbb30190e21c3deee21777e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 3 Feb 2026 07:58:52 +0000 Subject: [PATCH] Merged in fix/STAY-23-room-price (pull request #3529) fix(STAY-23): don't strikethrough price if only one room is cancelled (multiroom) * fix(STAY-23): don't strikethrough price if only room is cancelled (multiroom) Approved-by: Anton Gunnarsson --- .../HotelReservation/MyStay/Rooms/TotalPrice.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx index e62038129..434ebb47a 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx @@ -4,16 +4,18 @@ import { useMyStayStore } from "@/stores/my-stay" import Price from "../PriceType/Price" -import type { PriceType as _PriceType } from "@/types/components/hotelReservation/myStay/myStay" - export default function TotalPrice() { - const { bookedRoom, totalPrice } = useMyStayStore((state) => ({ - bookedRoom: state.bookedRoom, - totalPrice: state.totalPrice, - })) + const { bookedRoom, totalPrice, allRoomsAreCancelled } = useMyStayStore( + (state) => ({ + bookedRoom: state.bookedRoom, + totalPrice: state.totalPrice, + allRoomsAreCancelled: state.allRoomsAreCancelled, + }) + ) + return (