warrior 4 сар өмнө
parent
commit
032c15a9b2

+ 1 - 1
projects/live-app/src/moduls/user/profile/profile.component.ts

@@ -90,7 +90,7 @@ export class ProfileComponent implements OnInit {
         color:'#a1a1a1',
       },
     }
-    return map[this.userStatus]
+    return map?.[this.userStatus] || map['OFFLINE'];
   }
   ngOnInit() {
     this.activateRoute.paramMap.subscribe(async (params) => {