mazipan / tanyaaja.in

❓Kumpulkan pertanyaan secara anonim dari siapa saja dengan mudah
https://tanyaaja.in
MIT License
134 stars 36 forks source link

Avoid sending the same question from frontend #65

Closed mazipan closed 10 months ago

mazipan commented 11 months ago

Is your feature request related to a problem? Please describe. Not sure if it's intended or not, but I found that someone sending the same question to different person.

In another case, to the same person.

Describe the solution you'd like My idea is saving the last sent question to the session storage/local storage. Before sending it, validate in frontend. Make sure it's not the same with the previous one.

fandok commented 11 months ago

Mas Irfan, I would like to handle this issue. From your solution, i think the implementation would be:

  1. Store sent question to the session storage
  2. When another question asked, validated the question with the one in the session storage

Another issue to tackle is maybe to disable the send question button when question asked to prevent the double question

fandok commented 11 months ago

Just finish the implementation mas @mazipan

Had busy at work so I can only do it right now