mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #1342 from appwrite/fix-payment-expired-notification
fix: payment expired notification, add sessionstorage check
This commit is contained in:
1 file changed
+3
@@ -306,6 +306,8 @@ export async function paymentExpired(org: Organization) {
|
||||
org.paymentMethodId
|
||||
);
|
||||
if (!payment?.expiryYear) return;
|
||||
const sessionStorageNotification = sessionStorage.getItem('expiredPaymentNotification');
|
||||
if (sessionStorageNotification === 'true') return;
|
||||
const year = new Date().getFullYear();
|
||||
const month = new Date().getMonth();
|
||||
const expiredMessage = `The default payment method for <b>${org.name}</b> has expired`;
|
||||
@@ -343,6 +345,7 @@ export async function paymentExpired(org: Organization) {
|
||||
]
|
||||
});
|
||||
}
|
||||
sessionStorage.setItem('expiredPaymentNotification', 'true');
|
||||
}
|
||||
|
||||
export function checkForMarkedForDeletion(org: Organization) {
|
||||
|
||||
Reference in new issue
Block a user