Skip to content

Commit

Permalink
Fix floating point numbers on ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Oct 15, 2024
1 parent 5cf32a2 commit 0a93d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/components/tastingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 0a93d2b

Please sign in to comment.