Simplify isUserMenuAvailable check
This commit is contained in:
parent
60d29cb4f8
commit
05b0e3bfb5
1 changed files with 1 additions and 4 deletions
|
@ -43,10 +43,7 @@ const AppToolbar: FC<AppToolbarProps> = ({
|
||||||
const isBackButtonAvailable = appRouter.canGoBack();
|
const isBackButtonAvailable = appRouter.canGoBack();
|
||||||
|
|
||||||
// Handles a specific case to hide the user menu on the select server page while authenticated
|
// Handles a specific case to hide the user menu on the select server page while authenticated
|
||||||
let isUserMenuAvailable = true;
|
const isUserMenuAvailable = currentLocation.pathname !== '/selectserver.html';
|
||||||
if (currentLocation.pathname == '/selectserver.html') {
|
|
||||||
isUserMenuAvailable = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Toolbar
|
<Toolbar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue