Skip to content

Commit 23ef925

Browse files
author
Anees Iqbal
committed
🐛 Fix property access
1 parent 0a20666 commit 23ef925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-embed-condition.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
|| node.parent.type !== 'JSXElement'
3232
|| node.expression == null
3333
|| node.expression.type !== 'LogicalExpression'
34-
|| node.operator === '??'
34+
|| node.expression.operator === '??'
3535
) {
3636
return;
3737
}

0 commit comments

Comments
 (0)