revert to fix hooks deps

This commit is contained in:
Tom
2023-04-26 14:24:08 +02:00
parent 6995684519
commit 649964f26b
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
if (index !== undefined) {
setPendingCommentIndex(index);
}
}, [index, location, setPendingCommentIndex]);
}, [index, location]);
const resetFields = () => {
@@ -122,7 +122,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
closeModal();
})();
}
}, [publishCommentOptions, closeModal, publishComment]);
}, [publishCommentOptions]);
const getChallengeAnswersFromUser = async (challenges) => {