fix: notification is only shown once

This commit is contained in:
Arman
2023-07-19 17:51:43 +02:00
parent 639802b793
commit fc586c6d49
@@ -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>