We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63d17f commit 22610a5Copy full SHA for 22610a5
scripts.js
@@ -106,7 +106,10 @@ window.addEventListener('load', function() {
106
if (!data) {
107
return;
108
}
109
- const activeSponsors = data.filter((sponsor) => sponsor.isActive);
+
110
+ const oneMonth = 1000 * 60 * 60 * 24 * 30;
111
+ const now = new Date();
112
+ const activeSponsors = data.filter((sponsor) => sponsor.isActive || (sponsor.lastTransactionAt && new Date(sponsor.lastTransactionAt).getTime() > now.getTime() - oneMonth));
113
const bronzeSponsorsContainer = document.querySelector('.bronze-sponsors-container');
114
if (!bronzeSponsorsContainer) {
115
0 commit comments