We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111bb75 commit e749bf5Copy full SHA for e749bf5
1 file changed
angular/src/app/supportus/supportus.component.ts
@@ -16,6 +16,7 @@ import { DialogModule } from "primeng/dialog";
16
import { InputNumberModule } from "primeng/inputnumber";
17
import { InputGroupModule } from "primeng/inputgroup";
18
import { InputGroupAddonModule } from "primeng/inputgroupaddon";
19
+import { BasicInfo } from "../observer/observer.component";
20
21
@Component({
22
selector: "app-supportus",
@@ -79,6 +80,10 @@ export class SupportusComponent implements OnInit {
79
80
username: "Not logged in",
81
avatarHash: "",
82
};
83
+ this.key = this.localstorageService.getItem<BasicInfo>("basicInfo")?.key || this.key;
84
+ if (this.key && this.key.length > 12) {
85
+ this.tryLogIn();
86
+ }
87
}
88
89
protected tryLogIn() {
0 commit comments