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

Function getRemainingMs

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

Source from the content-addressed store, hash-verified

284 }));
285 },
286 getRemainingMs() {
287 return Math.max(0, state.remainingMs || state.adFreeUntil - Date.now());
288 },
289 getRemainingLabel() {
290 const remainingMs = this.getRemainingMs();
291 if (!remainingMs) return "No active ad-free pass";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected