From 56aa503ded16f27cb4e8a1ab99d6289af0c40317 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 7 Sep 2023 08:31:05 +0530 Subject: [PATCH] Remove optional chaining --- cypress/helpers/util.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/helpers/util.ts b/cypress/helpers/util.ts index 60f3ad7a90..c656f638da 100644 --- a/cypress/helpers/util.ts +++ b/cypress/helpers/util.ts @@ -60,7 +60,10 @@ export const imgSnapshotTest = ( sequence: { ...(_options.sequence || {}), actorFontFamily: 'courier', - noteFontFamily: _options.sequence?.noteFontFamily || 'courier', + noteFontFamily: + _options.sequence && _options.sequence.noteFontFamily + ? _options.sequence.noteFontFamily + : 'courier', messageFontFamily: 'courier', }, };