We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
alternateVal
1 parent 3c2dece commit 346df45Copy full SHA for 346df45
lib/rules/jsx-no-leaked-render.js
@@ -73,7 +73,7 @@ function ruleFixer(context, fixStrategy, fixer, reportedNode, leftNode, rightNod
73
if (rightNode.parent.test && rightNode.parent.test.type === 'LogicalExpression') {
74
return fixer.replaceText(reportedNode, `${newText} ? ${consequentVal} : ${alternateVal}`);
75
}
76
- return fixer.replaceText(reportedNode, `${newText} && ${rightNode.parent.alternate.name}`);
+ return fixer.replaceText(reportedNode, `${newText} && ${alternateVal}`);
77
78
79
if (rightNode.type === 'ConditionalExpression') {
0 commit comments