Skip to content

Commit

Permalink
fix(typescript-estree): correct linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Feb 25, 2021
1 parent fdf421b commit 63a0f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export class Converter {
): TSESTree.JSXIdentifier {
const result = this.createNode<TSESTree.JSXIdentifier>(node, {
type: AST_NODE_TYPES.JSXIdentifier,
name: name || node.text,
name: name ?? node.text,
range,
});
this.registerTSNodeInNodeMap(node, result);
Expand Down

0 comments on commit 63a0f6f

Please sign in to comment.