Merged in fix/SW-1917-mobile-booking-codes-map- (pull request #1951)
Fix: SW-1917 Displayed booking code price in map card * Fix: SW-1917 Displayed booking code price in map card Approved-by: Niclas Edenvin
This commit is contained in:
@@ -37,6 +37,7 @@ export default function ListingHotelCardDialog({
|
||||
const { data: session } = useSession()
|
||||
const isUserLoggedIn = isValidClientSession(session)
|
||||
const {
|
||||
bookingCode,
|
||||
name,
|
||||
publicPrice,
|
||||
memberPrice,
|
||||
@@ -97,7 +98,7 @@ export default function ListingHotelCardDialog({
|
||||
</Caption>
|
||||
)}
|
||||
<div className={styles.listingPrices}>
|
||||
{publicPrice && !isUserLoggedIn && memberPrice && (
|
||||
{publicPrice && !isUserLoggedIn && memberPrice ? (
|
||||
<>
|
||||
<Subtitle type="two">
|
||||
{publicPrice} {currency}
|
||||
@@ -105,6 +106,13 @@ export default function ListingHotelCardDialog({
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{memberPrice && <Caption>/</Caption>}
|
||||
</>
|
||||
) : (
|
||||
bookingCode &&
|
||||
publicPrice && (
|
||||
<Subtitle type="two" color="red">
|
||||
{publicPrice} {currency}
|
||||
</Subtitle>
|
||||
)
|
||||
)}
|
||||
{memberPrice && (
|
||||
<Subtitle type="two" color="red">
|
||||
|
||||
Reference in New Issue
Block a user