Merge branch 'pr/RohanHandore/4340' into develop

* pr/RohanHandore/4340:
  Remove optional chaining
This commit is contained in:
Sidharth Vinod 2023-09-07 08:33:20 +05:30
commit 6fa97a8b71
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

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