Skip to content

Commit cbaab90

Browse files
committed
Remove optional chain
1 parent 4dfdb47 commit cbaab90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/a11y-explicit-heading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const isInvalid = elem => {
2020
const elemAs = isUsingAsProp(elem)
2121

2222
if (!elemAs) return 'nonExplicitHeadingLevel'
23-
if (elemAs?.value && !isValidAsUsage(elemAs.value)) return 'invalidAsValue'
23+
if (elemAs.value && !isValidAsUsage(elemAs.value)) return 'invalidAsValue'
2424

2525
return false
2626
}

0 commit comments

Comments
 (0)