From 6ac47e45e70da1548b272c6e96c972eac6a2c578 Mon Sep 17 00:00:00 2001 From: Carlos Monastyrski Date: Wed, 10 Dec 2025 16:58:11 -0300 Subject: [PATCH] Address PR suggestion --- .../src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx index a51147d75d..519e4265a5 100644 --- a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx +++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx @@ -170,7 +170,7 @@ export const Navbar = () => { const [isOrgSelectOpen, setIsOrgSelectOpen] = useState(false); const location = useLocation(); - const isBillingPage = /^\/organization[s]?\/[^/]+\/billing$/.test(location.pathname); + const isBillingPage = location.pathname === `/organizations/${currentOrg.id}/billing`; const isModalIntrusive = Boolean(!isBillingPage && isCardDeclinedMoreThan30Days);