From 0a93d2b2db4a6148009e1027439f61a1f5f4cb31 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Mon, 14 Oct 2024 19:26:18 -0700 Subject: [PATCH] Fix floating point numbers on ratings --- apps/web/src/components/tastingForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/tastingForm.tsx b/apps/web/src/components/tastingForm.tsx index a339a2de..af4eb383 100644 --- a/apps/web/src/components/tastingForm.tsx +++ b/apps/web/src/components/tastingForm.tsx @@ -151,7 +151,7 @@ export default function TastingForm({ onChange( e.target.value === "" ? undefined - : parseInt(e.target.value, 10), + : parseFloat(e.target.value), ) } error={errors.rating}