1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

null check on u2f challenge

This commit is contained in:
Kyle Spearrin
2018-07-21 00:32:41 -04:00
parent cc8dd89b2b
commit b5353551a8

View File

@@ -4,7 +4,7 @@ export class TwoFactorU2fResponse {
constructor(response: any) { constructor(response: any) {
this.enabled = response.Enabled; this.enabled = response.Enabled;
this.challenge = new ChallengeResponse(response.Challenge); this.challenge = response.Challenge == null ? null : new ChallengeResponse(response.Challenge);
} }
} }