improvement: lab/clinic commiunication flow completely overhauled. no more shit.
This commit is contained in:
@@ -50,8 +50,8 @@ export function useMarkTabReadOnVisit() {
|
||||
|
||||
useEffect(() => {
|
||||
const tab = tabFromPathname(pathname);
|
||||
// Cases tab badge clears per opened case (mark-case-read), not on tab visit.
|
||||
if (!tab || tab === 'CASES' || !currentOrganization?.id) return;
|
||||
// Cases and Treatment tab badges clear per opened case (mark-case-read), not on tab visit.
|
||||
if (!tab || tab === 'CASES' || tab === 'TREATMENT' || !currentOrganization?.id) return;
|
||||
|
||||
void notificationsApi.markTabRead(tab).then(() => {
|
||||
window.dispatchEvent(new Event(tabBadgesChangedEventName()));
|
||||
|
||||
Reference in New Issue
Block a user