When a user with just a driver role views the driver availability index page from Shifts -> Availability results in a bunch of 404 backend GET error toasts.
Expected Behavior
There should be no toasts, and a driver should be able to view their availabilities.
Current / Observed Behavior
Steps to Reproduce
As a user with only role driver
Click the Shifts dropdown on the navbar
Click Availability
Fix
[x] Modify DriverAvailabilityIndexPage.js to use the non-admin backend endpoint so that the page works correctly for drivers.
Summary
When a user with just a driver role views the driver availability index page from
Shifts
->Availability
results in a bunch of 404 backend GET error toasts.Expected Behavior
There should be no toasts, and a driver should be able to view their availabilities.
Current / Observed Behavior
Steps to Reproduce
Shifts
dropdown on the navbarAvailability
Fix
DriverAvailabilityIndexPage.js
to use the non-admin backend endpoint so that the page works correctly for drivers.