Merged in fix/SW-2249-missing-currency (pull request #2159)
fix(SW-2249): Added default currency to summary and price details modal * fix(SW-2249): Added default currency to summary and price details modal Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -8,6 +8,7 @@ import { RatesContext } from "@/contexts/Rates"
|
||||
|
||||
import {
|
||||
clearRoomSelectionFromUrl,
|
||||
findDefaultCurrency,
|
||||
findProductInRoom,
|
||||
findSelectedRate,
|
||||
} from "./helpers"
|
||||
@@ -118,6 +119,8 @@ export function createRatesStore({
|
||||
|
||||
const isRedemptionBooking = booking.searchType === REDEMPTION
|
||||
|
||||
const defaultCurrency = findDefaultCurrency(roomsAvailability)
|
||||
|
||||
return create<RatesState>()((set) => {
|
||||
return {
|
||||
activeRoom,
|
||||
@@ -133,6 +136,7 @@ export function createRatesStore({
|
||||
roomsAvailability,
|
||||
searchParams,
|
||||
vat,
|
||||
defaultCurrency,
|
||||
rooms: booking.rooms.map((room, idx) => {
|
||||
const roomConfiguration = roomConfigurations[idx]
|
||||
const roomPackages = roomsPackages[idx]
|
||||
|
||||
Reference in New Issue
Block a user