Skip to content

Commit

Permalink
Remove optional chaining syntax
Browse files Browse the repository at this point in the history
`esm` doesn't support it:
standard-things/esm#866
  • Loading branch information
mtsknn committed Jun 26, 2021
1 parent 6aa628c commit 012e768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/components/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Header = ({ currentUrl }) => {
<${Link}
class=${tw(
linkClasses,
currentUrl.startsWith?.(href) && 'font-bold'
currentUrl && currentUrl.startsWith(href) && 'font-bold'
)}
href=${href}
>
Expand Down

0 comments on commit 012e768

Please sign in to comment.