mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: notification is only shown once
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
});
|
||||
|
||||
function checkForTrialEnding() {
|
||||
if (localStorage.getItem('trialEndingNotification') === 'true') return;
|
||||
if ($organization?.billingTrialDays === 5) {
|
||||
const expirationDate = new Date(
|
||||
new Date().getTime() + 5 * 24 * 60 * 60 * 1000
|
||||
@@ -26,6 +27,7 @@
|
||||
expirationDate
|
||||
)}</b>`
|
||||
});
|
||||
localStorage.setItem('trialEndingNotification', 'true');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user