mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 15:26:20 +00:00
Fix decline card modal not closing on the billing page
This commit is contained in:
@@ -170,7 +170,7 @@ export const Navbar = () => {
|
|||||||
const [isOrgSelectOpen, setIsOrgSelectOpen] = useState(false);
|
const [isOrgSelectOpen, setIsOrgSelectOpen] = useState(false);
|
||||||
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const isBillingPage = location.pathname === "/organization/billing";
|
const isBillingPage = /^\/organization[s]?\/[^/]+\/billing$/.test(location.pathname);
|
||||||
|
|
||||||
const isModalIntrusive = Boolean(!isBillingPage && isCardDeclinedMoreThan30Days);
|
const isModalIntrusive = Boolean(!isBillingPage && isCardDeclinedMoreThan30Days);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user