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();
|
||||
|
||||
// Handles a specific case to hide the user menu on the select server page while authenticated
|
||||
let isUserMenuAvailable = true;
|
||||
if (currentLocation.pathname == '/selectserver.html') {
|
||||
isUserMenuAvailable = false;
|
||||
}
|
||||
const isUserMenuAvailable = currentLocation.pathname !== '/selectserver.html';
|
||||
|
||||
return (
|
||||
<Toolbar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue