Skip to content

Commit

Permalink
fix(app): fix AppName
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakorzhovnik committed Jul 28, 2024
1 parent da29c6c commit 9beac1d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import styles from './AppName.module.scss';
function AppName() {
let { pathname } = useLocation();
const isRobot = pathname.includes('@') || pathname.includes('neuron/');
const isOracle = pathname.includes('oracle');

if (isRobot) {
const pathnameArr = pathname.replace(/^\/|\/$/g, '').split('/');
Expand All @@ -20,6 +21,10 @@ function AppName() {
: findItem;
}

if (isOracle) {
pathname = routes.oracle.path;
}

const value = findApp(getMenuItems(), pathname);

const content = value[0]?.name || CHAIN_ID;
Expand Down

0 comments on commit 9beac1d

Please sign in to comment.