From 77bd280600f81dae76da33658ff198247ca01aba Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Sat, 24 Apr 2021 10:20:48 -0700 Subject: [PATCH] add await to auth service init --- src/app/auth/auth.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/auth/auth.component.ts b/src/app/auth/auth.component.ts index c27df3a..19419db 100644 --- a/src/app/auth/auth.component.ts +++ b/src/app/auth/auth.component.ts @@ -26,7 +26,7 @@ export class AuthComponent implements OnInit { this.keyForm = this.formBuilder.group({ key: ['', Validators.required], }); - this.authService.init(); + await this.authService.init(); //if (this.authService.privateKey !== undefined) { // const setKey = await this.authService.setKey(this.authService.privateKey); // }