1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

Fix !== null checks

This commit is contained in:
Kyle Spearrin 2018-08-30 21:47:41 -04:00
parent 82bf646a77
commit 38c26d9649

View File

@ -37,7 +37,7 @@ export class TokenRequest {
// obj.devicePushToken = this.device.pushToken; // obj.devicePushToken = this.device.pushToken;
} }
if (this.token && this.provider !== null && (typeof this.provider !== 'undefined')) { if (this.token && this.provider != null) {
obj.twoFactorToken = this.token; obj.twoFactorToken = this.token;
obj.twoFactorProvider = this.provider; obj.twoFactorProvider = this.provider;
obj.twoFactorRemember = this.remember ? '1' : '0'; obj.twoFactorRemember = this.remember ? '1' : '0';