fix(SW-2210): Removed isUserLoggedIn from RatesStore
This commit is contained in:
committed by
Michael Zetterberg
parent
5323a8e46e
commit
7b76e351d9
@@ -5,13 +5,11 @@ import { Suspense } from "react"
|
||||
import { REDEMPTION } from "@/constants/booking"
|
||||
import { getHotel } from "@/lib/trpc/memoizedRequests"
|
||||
|
||||
import { auth } from "@/auth"
|
||||
import HotelInfoCard from "@/components/HotelReservation/SelectRate/HotelInfoCard"
|
||||
import { RoomsContainer } from "@/components/HotelReservation/SelectRate/RoomsContainer"
|
||||
import TrackingSDK from "@/components/TrackingSDK"
|
||||
import { setLang } from "@/i18n/serverContext"
|
||||
import { getHotelSearchDetails } from "@/utils/hotelSearchDetails"
|
||||
import { isValidSession } from "@/utils/session"
|
||||
import { convertSearchParamsToObj } from "@/utils/url"
|
||||
|
||||
import { getValidDates } from "./getValidDates"
|
||||
@@ -53,9 +51,6 @@ export default async function SelectRatePage({
|
||||
selectHotelParams.toDate
|
||||
)
|
||||
|
||||
const session = await auth()
|
||||
const isUserLoggedIn = isValidSession(session)
|
||||
|
||||
const arrivalDate = fromDate.toDate()
|
||||
const departureDate = toDate.toDate()
|
||||
|
||||
@@ -85,7 +80,6 @@ export default async function SelectRatePage({
|
||||
<RoomsContainer
|
||||
booking={booking}
|
||||
hotelType={hotelData.hotel.hotelType}
|
||||
isUserLoggedIn={isUserLoggedIn}
|
||||
roomCategories={hotelData.roomCategories}
|
||||
vat={hotelData.hotel.vat}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user