From 179d8d887f91dcd9148b969625937eff61216548 Mon Sep 17 00:00:00 2001 From: Diego Alzate Date: Tue, 21 May 2024 17:48:16 +0100 Subject: [PATCH] min 0 validation on number --- packages/berlin/src/pages/Register.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/berlin/src/pages/Register.tsx b/packages/berlin/src/pages/Register.tsx index 73164574..9cdd6de6 100644 --- a/packages/berlin/src/pages/Register.tsx +++ b/packages/berlin/src/pages/Register.tsx @@ -855,7 +855,7 @@ function NumberInput(props: { return true; } - const v = z.string().min(1, 'Value is required').safeParse(value); + const v = z.coerce.number().min(0, 'Value is required').safeParse(value); if (v.success) { return true;