fix resetFields

This commit is contained in:
Tom
2023-04-25 22:07:33 +02:00
parent 610ea65c67
commit 9f6a5d8e60
4 changed files with 42 additions and 14 deletions
+9 -3
View File
@@ -87,9 +87,15 @@ const ReplyModal = ({ isOpen, closeModal }) => {
const resetFields = () => {
nameRef.current.value = '';
commentRef.current.value = '';
linkRef.current.value = '';
if (nameRef.current) {
nameRef.current.value = '';
}
if (commentRef.current) {
commentRef.current.value = '';
}
if (linkRef.current) {
linkRef.current.value = '';
}
};