Skip to content

Commit

Permalink
href value is not defined when typing out the href orio
Browse files Browse the repository at this point in the history
  • Loading branch information
monsonjeremy committed Nov 25, 2021
1 parent b2acdbb commit d9c4f6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = {
(attr) => attr.type === 'JSXAttribute' && attr.name.name === 'href'
)

if (!href || href.value.type !== 'Literal') {
if (!href || (href.value && href.value.type !== 'Literal')) {
return
}

Expand Down

0 comments on commit d9c4f6f

Please sign in to comment.