fix: prevent phone input from running validation on mount when empty
This commit is contained in:
@@ -49,7 +49,8 @@ export default async function StepPage({
|
||||
toDate,
|
||||
} = getQueryParamsForEnterDetails(selectRoomParams)
|
||||
|
||||
void getBreakfastPackages(searchParams.hotel)
|
||||
const breakfastInput = { adults, fromDate, hotelId, toDate }
|
||||
void getBreakfastPackages(breakfastInput)
|
||||
void getSelectedRoomAvailability({
|
||||
hotelId: parseInt(searchParams.hotel),
|
||||
adults,
|
||||
@@ -74,7 +75,7 @@ export default async function StepPage({
|
||||
rateCode,
|
||||
roomTypeCode,
|
||||
})
|
||||
const breakfastPackages = await getBreakfastPackages(searchParams.hotel)
|
||||
const breakfastPackages = await getBreakfastPackages(breakfastInput)
|
||||
const user = await getProfileSafely()
|
||||
const savedCreditCards = await getCreditCardsSafely()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user