Skip to content

Commit d58f9a8

Browse files
Merge pull request #391 from abhishek-lambda/AT-281
useES5
2 parents 37d7777 + f798ae9 commit d58f9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accessibility/scanner/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const performModifiedScan = (originalFn, Subject, stateType, ...args) => {
2020

2121
const runCustomizedCommand = () => {
2222
if (!Subject) {
23-
const cypressCommandSubject = cy.subject?.() || cy.wrap(null);
23+
const cypressCommandSubject = cy.subject ? cy.subject() : cy.wrap(null);
2424
customChaining.then(() => cypressCommandSubject).then(() => originalFn(...args));
2525
} else {
2626
const timeoutArg = args.find(arg => arg?.timeout)?.timeout;

0 commit comments

Comments
 (0)