fix(SW-2210): Removed isUserLoggedIn from RatesStore
This commit is contained in:
committed by
Michael Zetterberg
parent
5323a8e46e
commit
7b76e351d9
@@ -22,7 +22,6 @@ import type { PriceProduct } from "@/types/trpc/routers/hotel/roomAvailability"
|
||||
export function createRatesStore({
|
||||
booking,
|
||||
hotelType,
|
||||
isUserLoggedIn,
|
||||
labels,
|
||||
pathname,
|
||||
roomCategories,
|
||||
@@ -126,7 +125,6 @@ export function createRatesStore({
|
||||
packageOptions,
|
||||
hotelType,
|
||||
isRedemptionBooking,
|
||||
isUserLoggedIn,
|
||||
pathname,
|
||||
rateSummary,
|
||||
roomConfigurations,
|
||||
@@ -307,7 +305,7 @@ export function createRatesStore({
|
||||
})
|
||||
)
|
||||
},
|
||||
selectRate(selectedRate) {
|
||||
selectRate(selectedRate, isUserLoggedIn) {
|
||||
return set(
|
||||
produce((state: RatesState) => {
|
||||
if (!selectedRate.product) {
|
||||
|
||||
Reference in New Issue
Block a user