From bbcbd6d119396e80d02849c67204fa53434896e6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 23 Jul 2018 17:15:23 -0400 Subject: [PATCH] null checks --- src/angular/components/two-factor.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/angular/components/two-factor.component.ts b/src/angular/components/two-factor.component.ts index 39ce3578b9..b638796908 100644 --- a/src/angular/components/two-factor.component.ts +++ b/src/angular/components/two-factor.component.ts @@ -59,9 +59,9 @@ export class TwoFactorComponent implements OnInit, OnDestroy { if (this.win != null && this.u2fSupported) { let customWebVaultUrl: string = null; - if (this.environmentService.baseUrl) { + if (this.environmentService.baseUrl != null) { customWebVaultUrl = this.environmentService.baseUrl; - } else if (this.environmentService.webVaultUrl) { + } else if (this.environmentService.webVaultUrl != null) { customWebVaultUrl = this.environmentService.webVaultUrl; }