-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
medical dashboard now calculates length of stay instead of using mock…
… data (#89) * fixed the bug in the authentication.ts file Problem The getUserGroupKey() function was checking the stored user group key against the object's keys instead of the object's values. This caused the function to always return null and broke the protected navbar. Solution - Changed the function to check the object's values instead of the keys. Ticket N/A Documentation N/A Testing - Tested the protected navbar and it is now working as expected. * medical dashboard now calculates length of stay instead of using mock data Problem The medical dashboard was using mock data for length of stay. Solution - Created a new function in `postfestivalDashboard.ts` to calculate length of stay - Integrated the new function into the `postevent-summary.tsx` page Ticket URL N/A Documentation N/A Tests Run - Locally executed `yarn build` and built with no errors. - Checked local dev server and confirmed that the medical dashboard was displaying calculated data. + localhost:3000/medical/dashboards/postevent-summary
- Loading branch information
Showing
5 changed files
with
193 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters