Fixes bug where toolbar was hidden on user token list

This commit is contained in:
mabashian 2021-06-16 13:03:29 -04:00 committed by Shane McDonald
parent ea5bd45d03
commit 29d57ea403
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374
2 changed files with 1 additions and 2 deletions

View File

@ -80,7 +80,7 @@ function User({ setBreadcrumb, me }) {
let showCardHeader = true;
if (
['edit', 'add', 'tokens'].some(name => location.pathname.includes(name))
['edit', 'add', 'tokens/'].some(name => location.pathname.includes(name))
) {
showCardHeader = false;
}

View File

@ -33,7 +33,6 @@ function Users() {
[`/users/${user.id}/organizations`]: t`Organizations`,
[`/users/${user.id}/tokens`]: t`Tokens`,
[`/users/${user.id}/tokens/add`]: t`Create user token`,
[`/users/${user.id}/tokens/${token && token.id}`]: t`Application Name`,
[`/users/${user.id}/tokens/${token && token.id}/details`]: t`Details`,
});
}, []);