You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make happy path explicit: on add question focus title and have toast message to add question details and click save change
Simplify happy path: user flow for add requires 2 clicks (add question and save change), make the addition of question more intuitive by having add question open a modal of fields and having a confirm button on that modal. This ensures that there isnt an addition of an empty question which is unintuitive.
Recreate problematic scenario
-> Add Question
-> fill in info but dont click "Save 1 Change"
-> Then click Add Question
It'll throw error cos the Add Question adds an empty question into the DB.
The changes have yet to be be saved. Hence on adding another question (which is by default an empty question) an error is thrown as there is already a empty question (question of title empty string), and cant add another question with empty string
The text was updated successfully, but these errors were encountered:
Possible fixes
Recreate problematic scenario
-> Add Question
-> fill in info but dont click "Save 1 Change"
-> Then click Add Question
It'll throw error cos the Add Question adds an empty question into the DB.
The changes have yet to be be saved. Hence on adding another question (which is by default an empty question) an error is thrown as there is already a empty question (question of title empty string), and cant add another question with empty string
The text was updated successfully, but these errors were encountered: