From eea9a13252d0328a6b784904cea1eb6f412fdb83 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Wed, 1 Sep 2021 12:17:08 -0600 Subject: [PATCH] logout whether or not BE --- ui/src/app/app.component.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index 99ff34d3a..5f72db6e0 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -180,22 +180,10 @@ export class AppComponent { await alert.present() } + // should wipe cache independant of actual BE logout private async logout () { - const loader = await this.loadingCtrl.create({ - spinner: 'lines', - message: 'Logging out...', - cssClass: 'loader', - }) - await loader.present() - - try { - await this.embassyApi.logout({ }) - this.authService.setUnverified() - } catch (e) { - await this.errToast.present(e) - } finally { - loader.dismiss() - } + this.embassyApi.logout({ }) + this.authService.setUnverified() } private watchConnection (): Subscription {