fix: prevent phone input from running validation on mount when empty
This commit is contained in:
@@ -9,6 +9,8 @@ import {
|
||||
|
||||
import { serverClient } from "../server"
|
||||
|
||||
import type { BreackfastPackagesInput } from "@/types/requests/packages"
|
||||
|
||||
export const getLocations = cache(async function getMemoizedLocations() {
|
||||
return serverClient().hotel.locations.get()
|
||||
})
|
||||
@@ -135,7 +137,7 @@ export const getSiteConfig = cache(async function getMemoizedSiteConfig() {
|
||||
})
|
||||
|
||||
export const getBreakfastPackages = cache(async function getMemoizedPackages(
|
||||
hotelId: string
|
||||
input: BreackfastPackagesInput
|
||||
) {
|
||||
return serverClient().hotel.packages.breakfast({ hotelId })
|
||||
return serverClient().hotel.packages.breakfast(input)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user