Skip to content

Commit

Permalink
fix(app): set app name
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakorzhovnik committed Jul 29, 2024
1 parent 9beac1d commit 6931dd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/appsMenu/appsMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { CHAIN_ID } from 'src/constants/config';
const getMenuItems = () => {
const listItemMenu = [
{
name: 'My robot',
name: 'robot',
icon: robot,
to: '/robot',
subItems: [
Expand Down
4 changes: 2 additions & 2 deletions src/utils/findApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const findApp = (menuItems: MenuItems, url: string) => {
if (item.to === url) {
acc.push(item);
} else if (findSubItemFc(item.subItems, url).length !== 0) {
const findSubItem = findSubItemFc(item.subItems, url);
acc.push({ ...item, name: findSubItem[0].name });
// const findSubItem = findSubItemFc(item.subItems, url);
acc.push(item);
}
return acc;
}, []);
Expand Down

0 comments on commit 6931dd3

Please sign in to comment.