Skip to content

Commit

Permalink
fix orm condition to show up on prod url
Browse files Browse the repository at this point in the history
  • Loading branch information
petradonka committed May 13, 2024
1 parent 3c65d8b commit bdcb5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/DocSidebar/Desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function DocSidebarDesktop({ path, sidebar, onCollapse, isHidden }: Props) {
)}
>
{hideOnScroll && <Logo tabIndex={-1} className={styles.sidebarLogo} />}
{location.pathname.split("/")[1] == "orm" && <Promo />}
{(location.pathname.split("/")[1] == "orm" || location.pathname.split("/")[2] == "orm") && <Promo />}
<Content path={path} sidebar={sidebar} />
{hideable && <CollapseButton onClick={onCollapse} />}
</div>
Expand Down

0 comments on commit bdcb5c9

Please sign in to comment.