From d10d40697cd22a63b221356fb61cf492eede188a Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 2 Jul 2021 20:53:14 +0200 Subject: [PATCH] Set reprompt to None if null (#422) --- common/src/models/view/cipherView.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/models/view/cipherView.ts b/common/src/models/view/cipherView.ts index 466ba9ab02..9a2208c0a5 100644 --- a/common/src/models/view/cipherView.ts +++ b/common/src/models/view/cipherView.ts @@ -53,7 +53,8 @@ export class CipherView implements View { this.collectionIds = c.collectionIds; this.revisionDate = c.revisionDate; 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 {