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
Describe the bug
On the page where the mentor registers availabilities, if the end_time is before the start_time then there is a 400 error and the page goes blank.
Expected behavior
There should be validations in place to check if the start and end times are acceptable. If they are not then there should be a clear indication in the UI that the dates are incorrect and the submit button should be disabled. We should not even be able to make the api call to get that 400 error.
Screenshots
A blank screen is the end result
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Additional context
I'm not sure if there is already a validation system/library/architecture in place but it might be worth figuring that out before fixing this bug. If that is too big of a scope then never mind, it should just be fixed however someone wants to.
The text was updated successfully, but these errors were encountered:
Describe the bug
On the page where the mentor registers availabilities, if the
end_time
is before thestart_time
then there is a 400 error and the page goes blank.To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be validations in place to check if the start and end times are acceptable. If they are not then there should be a clear indication in the UI that the dates are incorrect and the submit button should be disabled. We should not even be able to make the api call to get that 400 error.
Screenshots
A blank screen is the end result
Desktop (please complete the following information):
Additional context
I'm not sure if there is already a validation system/library/architecture in place but it might be worth figuring that out before fixing this bug. If that is too big of a scope then never mind, it should just be fixed however someone wants to.
The text was updated successfully, but these errors were encountered: