We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da29c6c commit 9beac1dCopy full SHA for 9beac1d
src/containers/application/Header/CurrentApp/ui/AppName/AppName.tsx
@@ -10,6 +10,7 @@ import styles from './AppName.module.scss';
10
function AppName() {
11
let { pathname } = useLocation();
12
const isRobot = pathname.includes('@') || pathname.includes('neuron/');
13
+ const isOracle = pathname.includes('oracle');
14
15
if (isRobot) {
16
const pathnameArr = pathname.replace(/^\/|\/$/g, '').split('/');
@@ -20,6 +21,10 @@ function AppName() {
20
21
: findItem;
22
}
23
24
+ if (isOracle) {
25
+ pathname = routes.oracle.path;
26
+ }
27
+
28
const value = findApp(getMenuItems(), pathname);
29
30
const content = value[0]?.name || CHAIN_ID;
0 commit comments