Merged in fix/BOOK-584-red-price-strikethrough (pull request #3298)

fix(BOOK-584): show discounted if specialrate or member

* fix(BOOK-584): show discounted if specialrate or member


Approved-by: Anton Gunnarsson
This commit is contained in:
Bianca Widstam
2025-12-08 14:23:44 +00:00
parent f37f2a0f34
commit 200cf3f617
9 changed files with 45 additions and 45 deletions

View File

@@ -12,8 +12,8 @@ import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { Typography } from "@scandic-hotels/design-system/Typography"
import { useEnterDetailsStore } from "../../../../../stores/enter-details"
import { isBookingCodeRate } from "../../../../SelectRate/RoomsContainer/RateSummary/utils"
import { formId } from "../../../Payment/PaymentClient"
import { isDiscounted } from "../../UI/utils"
import styles from "./bottomSheet.module.css"
@@ -63,10 +63,8 @@ export default function SummaryBottomSheet({
}
}, [isSummaryOpen, errorCode])
const containsBookingCodeRate = rooms.find(
(r) => r && isBookingCodeRate(r.room.roomRate)
)
const showDiscounted = containsBookingCodeRate || isUserLoggedIn
const showDiscounted =
isUserLoggedIn || rooms.some((room) => isDiscounted(room.room))
return (
<div className={styles.wrapper} data-open={isSummaryOpen}>