[chore] move cards to htmx post
This commit is contained in:
@@ -35,9 +35,11 @@ const nearMint = await db.query.skus.findFirst({
|
||||
|
||||
const nearMintPrice = nearMint?.marketPrice ?? null;
|
||||
|
||||
const calculatedAt = new Date(nearMint?.calculatedAt);
|
||||
const calculatedAt = new Date(nearMint?.calculatedAt || 0);
|
||||
|
||||
function timeAgo(date: any) {
|
||||
if (date==0) return "never";
|
||||
|
||||
function timeAgo(date) {
|
||||
const seconds = Math.floor((Date.now() - date) / 1000);
|
||||
|
||||
const intervals = {
|
||||
|
||||
Reference in New Issue
Block a user