dont watch patch.data directly in TS (#371)

* dont watch patch.data directly in TS

* installs and uninstalls working

* minor repairs
This commit is contained in:
Matt Hill
2021-07-20 10:20:39 -06:00
committed by Aiden McClelland
parent e8bf254b91
commit 08e845228f
50 changed files with 444 additions and 340 deletions

View File

@@ -17,7 +17,7 @@ export class AuthService {
private readonly authState$: BehaviorSubject<AuthState> = new BehaviorSubject(AuthState.INITIALIZING)
constructor (
private readonly api: ApiService,
private readonly embassyApi: ApiService,
private readonly storage: Storage,
) { }
@@ -31,7 +31,7 @@ export class AuthService {
}
async login (password: string): Promise<void> {
await this.api.login({ password })
await this.embassyApi.login({ password })
await this.storage.set(this.LOGGED_IN_KEY, true)
this.authState$.next(AuthState.VERIFIED)
}