From e650b83385a468ccf1623c4afb4f4ef072a4647d Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 29 Oct 2019 15:30:49 -0400 Subject: [PATCH] don't signout users that are already signed out --- src/ui/component/header/view.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/component/header/view.jsx b/src/ui/component/header/view.jsx index fefaa6400..ec4a9ccf8 100644 --- a/src/ui/component/header/view.jsx +++ b/src/ui/component/header/view.jsx @@ -41,8 +41,9 @@ const Header = (props: Props) => { signOut, } = props; const authenticated = Boolean(email); - const homeButtonNavigationProps = authHeader ? { onClick: signOut } : { navigate: '/' }; - const closeButtonNavigationProps = authHeader ? { onClick: signOut } : { onClick: () => history.goBack() }; + const authHeaderAction = authenticated ? { onClick: signOut } : { navigate: '/' }; + const homeButtonNavigationProps = authHeader ? authHeaderAction : { navigate: '/' }; + const closeButtonNavigationProps = authHeader ? authHeaderAction : { onClick: () => history.goBack() }; function handleThemeToggle() { if (automaticDarkModeEnabled) {