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 GitHub
parent 5125558f52
commit 3a9b3452a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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],
)