Stop read notifications after user logouts

This commit is contained in:
Jose Alberto Hernandez
2025-04-06 17:52:31 -05:00
parent 6ec7c9e774
commit b2d3688e4d
5 changed files with 13 additions and 4 deletions
@@ -69,7 +69,7 @@ export class DashboardComponent implements OnInit {
*/
getFrequentActivities() {
const frequencyCounts: any = {};
let index = this.userActivity.length;
let index = this.userActivity?.length;
while (index) {
frequencyCounts[this.userActivity[--index]] = (frequencyCounts[this.userActivity[index]] || 0) + 1;
}