Skip to content

Commit 6931dd3

Browse files
fix(app): set app name
1 parent 9beac1d commit 6931dd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/utils/appsMenu/appsMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { CHAIN_ID } from 'src/constants/config';
1616
const getMenuItems = () => {
1717
const listItemMenu = [
1818
{
19-
name: 'My robot',
19+
name: 'robot',
2020
icon: robot,
2121
to: '/robot',
2222
subItems: [

src/utils/findApp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const findApp = (menuItems: MenuItems, url: string) => {
1010
if (item.to === url) {
1111
acc.push(item);
1212
} else if (findSubItemFc(item.subItems, url).length !== 0) {
13-
const findSubItem = findSubItemFc(item.subItems, url);
14-
acc.push({ ...item, name: findSubItem[0].name });
13+
// const findSubItem = findSubItemFc(item.subItems, url);
14+
acc.push(item);
1515
}
1616
return acc;
1717
}, []);

0 commit comments

Comments
 (0)