MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / isExpired

Function isExpired

web/src/components/table/RedemptionsTable.js:49–51  ·  view source on GitHub ↗
(rec)

Source from the content-addressed store, hash-verified

47 const { t } = useTranslation();
48
49 const isExpired = (rec) => {
50 return rec.status === 1 && rec.expired_time !== 0 && rec.expired_time < Math.floor(Date.now() / 1000);
51 };
52
53 const renderStatus = (status, record) => {
54 if (isExpired(record)) {

Callers 2

renderStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected