Update @hookform/resolvers
In v5 the zod resolver will automatically infer the type for `useForm`. It's not recommended to manually specify types. See https://github.com/react-hook-form/resolvers/releases/tag/v5.0.0
This commit is contained in:
@@ -88,7 +88,7 @@ export default function AddAncillaryFlowModal({
|
||||
const hasInsufficientPoints =
|
||||
(user?.membership?.currentPoints ?? 0) < (selectedAncillary?.points ?? 0)
|
||||
|
||||
const formMethods = useForm<AncillaryFormData>({
|
||||
const formMethods = useForm({
|
||||
defaultValues: {
|
||||
quantityWithPoints: null,
|
||||
quantityWithCard:
|
||||
|
||||
Reference in New Issue
Block a user