MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getExpiryLabel

Function getExpiryLabel

src/lib/adRewards.js:306–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 return `${hours}h ${remMinutes}m remaining`;
305 },
306 getExpiryLabel() {
307 const expiryDate = getExpiryDate();
308 if (!expiryDate) return "No active pass";
309 return expiryDate.toLocaleString();
310 },
311 isAdFreeActive() {
312 return Boolean(state.isActive && state.adFreeUntil > Date.now());
313 },

Callers

nothing calls this directly

Calls 1

getExpiryDateFunction · 0.85

Tested by

no test coverage detected