mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-07 22:53:55 -05:00
Address PR suggestion
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user