fix: avoid localizing currencies and default missing value to N/A

This commit is contained in:
Christel Westerberg
2025-01-07 15:48:44 +01:00
parent 5018cba623
commit a3331850a2
12 changed files with 22 additions and 68 deletions

View File

@@ -13,7 +13,6 @@ import {
extractGuestFromUser,
getInitialRoomPrice,
getInitialTotalPrice,
langToCurrency,
navigate,
writeToSessionStorage,
} from "./helpers"
@@ -233,7 +232,7 @@ export function createDetailsStore(
}
if (subtractFromTotalPrice) {
let currency = state.totalPrice.local.currency ?? langToCurrency()
let currency = state.totalPrice.local.currency
let currentBreakfastTotalPrice = 0
let currentBreakfastTotalRequestedPrice = 0
if (state.breakfast) {