From f0c2f4b793ead658e298d621353cebec9db567aa Mon Sep 17 00:00:00 2001 From: thecodrr Date: Sat, 26 Sep 2020 14:29:17 +0500 Subject: [PATCH] fix: do not show nav menu button when canGoBack=true --- .../src/components/route-container/index.js | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/route-container/index.js b/apps/web/src/components/route-container/index.js index a5908030d..1fee4d8fb 100644 --- a/apps/web/src/components/route-container/index.js +++ b/apps/web/src/components/route-container/index.js @@ -48,7 +48,7 @@ function Header(props) { - {(canGoBack || onlyBackButton) && ( + {canGoBack || onlyBackButton ? ( window.history.back()} ml={-2} @@ -57,16 +57,17 @@ function Header(props) { > + ) : ( + )} - {title}