fix treating ref as primitive

This commit is contained in:
keyan 2023-10-06 15:04:50 -05:00
parent 8ca8bb985e
commit 1b283fbe94
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ export function Form ({
const toaster = useToast()
const initialErrorToasted = useRef(false)
useEffect(() => {
if (initialError && !initialErrorToasted) {
if (initialError && !initialErrorToasted.current) {
toaster.danger(initialError.message || initialError.toString?.())
initialErrorToasted.current = true
}