Set rating value to 0 when value is null (#2824)

This commit is contained in:
Kendall Garner 2024-01-29 11:26:15 +00:00 committed by Joe Stump
parent 573a3c7f25
commit d1ec410747
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -38,7 +38,7 @@ export const RatingField = ({
const handleRating = useCallback(
(e, val) => {
rate(val, e.target.name)
rate(val ?? 0, e.target.name)
},
[rate],
)