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:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user