1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove unnecessary optional chaining

This commit is contained in:
Erik Marks 2020-10-28 22:50:10 -07:00
parent 2393749809
commit 59a38a253f

View File

@ -128,7 +128,7 @@ class SettingsPage extends PureComponent {
subheaderText = t(pathnameI18nKey || 'general')
}
return !currentPath?.startsWith(NETWORKS_ROUTE) && (
return !currentPath.startsWith(NETWORKS_ROUTE) && (
<div className="settings-page__subheader">
<div
className={classnames({ 'settings-page__subheader--link': initialBreadCrumbRoute })}