fix: prevent phone input from running validation on mount when empty

This commit is contained in:
Simon Emanuelsson
2024-10-31 13:39:08 +01:00
parent eb0494c2a2
commit 46a1874a76
8 changed files with 56 additions and 35 deletions

View File

@@ -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)
})