Quellcode durchsuchen

update README.sh

warrior vor 4 Monaten
Ursprung
Commit
032c15a9b2
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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) => {