Skip to content

Commit

Permalink
Remove optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Sep 7, 2023
1 parent 4e142c4 commit 56aa503
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cypress/helpers/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
};
Expand Down

0 comments on commit 56aa503

Please sign in to comment.