Don't assume context is always available

This commit is contained in:
RMidhunSuresh 2023-05-08 21:20:36 +05:30
parent 823a07d712
commit 0f27b68a37

View File

@ -55,7 +55,7 @@ export class VerificationTile extends SimpleTile {
get status(): Status {
const contextEventEntry = this.lowerEntry.contextForEntries?.[0];
if (contextEventEntry.eventType === VerificationEventType.Cancel) {
if (contextEventEntry?.eventType === VerificationEventType.Cancel) {
this._status = Status.Cancelled;
this.isCancelledByUs = false;