Skip to content

Commit

Permalink
Merge branch 'gg/use-form-library' of https://github.com/theopensyste…
Browse files Browse the repository at this point in the history
…mslab/fairhold-dashboard into gg/use-form-library
  • Loading branch information
Gabriele Granello committed Aug 21, 2024
2 parents 98ccf1f + 161bf7b commit 506e750
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/schemas/calculationSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const calculationSchema = z.object({
.min(1, "housePostcode is required")
.refine(fixPostcode, "Invalid postcode")
.transform(parsePostcode)
.refine((postcode): postcode is ValidPostcode => postcode.valid),
.refine((postcode) => postcode.valid, "Invalid postcode"),

houseSize: z.coerce.number().positive("houseSize must be a positive integer"),
houseAge: z.coerce.number().positive("houseAge must be a positive integer"),
houseBedrooms: z.coerce
Expand Down

0 comments on commit 506e750

Please sign in to comment.