Browse Source

update README.sh

warrior 3 months ago
parent
commit
032c15a9b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      projects/live-app/src/moduls/user/profile/profile.component.ts

+ 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) => {