diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx
index 10e7c6a7b..8db1ad21a 100644
--- a/ui/component/header/view.jsx
+++ b/ui/component/header/view.jsx
@@ -18,7 +18,7 @@ import { IS_MAC } from 'component/app/view';
type Props = {
balance: string,
roundedBalance: number,
- history: { push: string => void, goBack: () => void, goForward: () => void },
+ history: { push: string => void, goBack: () => void, goForward: () => void, location: { pathname: string } },
currentTheme: string,
automaticDarkModeEnabled: boolean,
setClientSetting: (string, boolean | string) => void,
@@ -49,9 +49,7 @@ const Header = (props: Props) => {
// Sign out if they click the "x" when they are on the password prompt
const authHeaderAction = syncError ? { onClick: signOut } : { navigate: '/' };
- const homeButtonNavigationProps = isVerifyPage ?
- { } :
- authHeader ? authHeaderAction : { navigate: '/' };
+ const homeButtonNavigationProps = isVerifyPage ? {} : authHeader ? authHeaderAction : { navigate: '/' };
const closeButtonNavigationProps = authHeader ? authHeaderAction : { onClick: () => history.goBack() };
function handleThemeToggle() {
@@ -116,7 +114,7 @@ const Header = (props: Props) => {
)}
{/* @endif */}
- {!authHeader && }
+ {!authHeader && }
{!authHeader ? (
@@ -127,37 +125,37 @@ const Header = (props: Props) => {
{getWalletTitle()}