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

Set reprompt to None if null (#422)

This commit is contained in:
Oscar Hinton 2021-07-02 20:53:14 +02:00 committed by GitHub
parent aff5ad1faa
commit d10d40697c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,8 @@ export class CipherView implements View {
this.collectionIds = c.collectionIds; this.collectionIds = c.collectionIds;
this.revisionDate = c.revisionDate; this.revisionDate = c.revisionDate;
this.deletedDate = c.deletedDate; this.deletedDate = c.deletedDate;
this.reprompt = c.reprompt; // Old locally stored ciphers might have reprompt == null. If so set it to None.
this.reprompt = c.reprompt ?? CipherRepromptType.None;
} }
get subTitle(): string { get subTitle(): string {