Remove optional chaining

This commit is contained in:
Sidharth Vinod
2023-09-07 08:31:05 +05:30
parent 4e142c438e
commit 56aa503ded

View File

@@ -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',
},
};