mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 04:42:01 +00:00
NavBarButton ensure type of active is boolean
This commit is contained in:
parent
929fc486ea
commit
5203f6ef97
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ const NavBarButton = ({ className, icon = '', label = '', href = '', onClick })
|
|||
const active = React.useMemo(() => {
|
||||
if (routeRegexp !== null) {
|
||||
const { pathname: locationPathname } = UrlUtils.parse(locationHash.slice(1));
|
||||
return routeRegexp.exec(locationPathname);
|
||||
return !!routeRegexp.exec(locationPathname);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue