Skip to content

Commit

Permalink
fix: super my orders
Browse files Browse the repository at this point in the history
  • Loading branch information
kris liu authored and kris-liu-smile committed Nov 22, 2022
1 parent a20c99d commit 41b233d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/storefront/src/components/layout/B3Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const B3Nav = ({
const newRoutes = routes.filter((route) => {
if (route.isMenuItem === false) return false
if (!isB2BUser && route.path === '/company-orders') return false
// if (isB2BUser && role === 3 && !isAgenting && route.path === '/orders') return false
return true
})

Expand Down
2 changes: 0 additions & 2 deletions apps/storefront/src/components/layout/B3RenderRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ export const B3RenderRouter = (props: B3RenderRouterProps) => {

if (!isB2BUser) newRoutes = routes.filter((item:RouteItem) => item.path !== '/company-orders')

if (+role === 3 && !isAgenting) newRoutes = routes.filter((item:RouteItem) => item.path !== '/orders')

return newRoutes
}

Expand Down

0 comments on commit 41b233d

Please sign in to comment.