MCPcopy Create free account
hub / github.com/Forward-Future/loopy / formatRetryHint

Function formatRetryHint

loop-library/site/script.js:1237–1249  ·  view source on GitHub ↗
(seconds)

Source from the content-addressed store, hash-verified

1235 setWeeklyStatus(
1236 "Signups are temporarily unavailable. Refresh and try again.",
1237 "error",
1238 );
1239 }
1240}
1241
1242function formatRetryHint(seconds) {
1243 if (!Number.isFinite(seconds) || seconds <= 0) {
1244 return "";
1245 }
1246
1247 if (seconds < 90) {
1248 const rounded = Math.max(1, Math.ceil(seconds));
1249 return ` Try again in about ${rounded} second${rounded === 1 ? "" : "s"}.`;
1250 }
1251
1252 const minutes = Math.max(1, Math.ceil(seconds / 60));

Callers 1

postProtectedFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected