mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 07:28:09 -05:00
Merge pull request #5012 from Infisical/fix/cardDeclinedNotClosingModal
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 location = useLocation();
|
||||
const isBillingPage = location.pathname === "/organization/billing";
|
||||
const isBillingPage = location.pathname === `/organizations/${currentOrg.id}/billing`;
|
||||
|
||||
const isModalIntrusive = Boolean(!isBillingPage && isCardDeclinedMoreThan30Days);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user