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:
Anton Gunnarsson
2025-05-07 10:22:19 +02:00
parent 83646d4d02
commit f46bc8f920
6 changed files with 20 additions and 13 deletions

View File

@@ -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: