Display different availabilities header when a user updates availabilities for the current week. The user can still edit their availabilities for the current week. Sunday to Saturday is considered to be in the same week.
Maybe users should be able to update the upcoming week's availabilities in advance? So that directors can assign tasks in advance
Set "Upcoming" as the default option for filtering deliveries, as requested by MADA.
When a user logs in, closes the tab, opens another tab, and tries to access other pages, an error occurs. This PR fixes this behaviour.
Test Plan:
Once you update the availabilities, you should be able to see the new availabilities-check-in header. You should also be redirected to my deliveries page when you click "save" when updating availabilities.
Try to log in, close the tab, open another tab, and try to access other pages, and see if an error occurs.
Related Issues
Which issues does this PR resolve/work on?
Closes #
Summary
This PR fixes/adds the following:
When a user logs in, closes the tab, opens another tab, and tries to access other pages, an error occurs. This PR fixes this behaviour.
Test Plan:
Related Issues
Which issues does this PR resolve/work on? Closes #