Open kk741852963tw opened 2 years ago
When user searches some text and add a Yes to a Q or A, and let the search bar empty. That Q or A's helpful does not update and it still can be added a Yes which may violate that one user only can add a Yes to a Q or A.
https://github.com/Team-Pharos/FEC_Lighthouse/blob/ea3107fbe3c4e0a09d1bb1dbb1747469b0fc3337/src/components/Questions/QuestionsView.jsx#L26-L55
Description
When user searches some text and add a Yes to a Q or A, and let the search bar empty. That Q or A's helpful does not update and it still can be added a Yes which may violate that one user only can add a Yes to a Q or A.
Files
https://github.com/Team-Pharos/FEC_Lighthouse/blob/ea3107fbe3c4e0a09d1bb1dbb1747469b0fc3337/src/components/Questions/QuestionsView.jsx#L26-L55