React refs keep telling me ref.current.value does not exist on type 'never'

I've sent a few pics of where the error is. The function is responsible for checking whether a field among a set of required input fields is filled in or not. If one of them is not filled it will stop the function.
image.png
image.png
Was this page helpful?