fix: avoid localizing currencies and default missing value to N/A
This commit is contained in:
@@ -10,7 +10,6 @@ import EnterDetailsProvider from "@/providers/EnterDetailsProvider"
|
||||
import { detailsStorageName, useEnterDetailsStore } from "."
|
||||
|
||||
import { BreakfastPackageEnum } from "@/types/enums/breakfast"
|
||||
import { CurrencyEnum } from "@/types/enums/currency"
|
||||
import { PackageTypeEnum } from "@/types/enums/packages"
|
||||
import { StepEnum } from "@/types/enums/step"
|
||||
import type { PersistedState } from "@/types/stores/enter-details"
|
||||
@@ -84,12 +83,12 @@ const breakfastPackages = [
|
||||
code: BreakfastPackageEnum.REGULAR_BREAKFAST,
|
||||
description: "Breakfast with reservation",
|
||||
localPrice: {
|
||||
currency: CurrencyEnum.SEK,
|
||||
currency: "SEK",
|
||||
price: "99",
|
||||
totalPrice: "99",
|
||||
},
|
||||
requestedPrice: {
|
||||
currency: CurrencyEnum.EUR,
|
||||
currency: "EUR",
|
||||
price: "9",
|
||||
totalPrice: "9",
|
||||
},
|
||||
@@ -108,7 +107,7 @@ function Wrapper({ children }: PropsWithChildren) {
|
||||
memberRate: {
|
||||
rateCode: "PLSA2BEU",
|
||||
localPrice: {
|
||||
currency: CurrencyEnum.EUR,
|
||||
currency: "EUR",
|
||||
pricePerNight: 100,
|
||||
pricePerStay: 200,
|
||||
},
|
||||
@@ -116,7 +115,7 @@ function Wrapper({ children }: PropsWithChildren) {
|
||||
publicRate: {
|
||||
rateCode: "SAVEEU",
|
||||
localPrice: {
|
||||
currency: CurrencyEnum.EUR,
|
||||
currency: "EUR",
|
||||
pricePerNight: 100,
|
||||
pricePerStay: 200,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user