From ee15d21a7840baf3836cf691b388fb8e12b8ac5c Mon Sep 17 00:00:00 2001 From: Regalijan Date: Thu, 21 Mar 2024 04:17:23 -0400 Subject: [PATCH] Use not-stupid properties on hammer page --- app/routes/hammer.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/routes/hammer.tsx b/app/routes/hammer.tsx index e4632c6..64f196b 100644 --- a/app/routes/hammer.tsx +++ b/app/routes/hammer.tsx @@ -116,7 +116,7 @@ export default function () { const cardList = []; for (const entry of history) { - const url = entry.entity.properties.evidence.stringValue; + const url = entry.evidence; const isUrl = () => { try { new URL(url).href; @@ -131,9 +131,7 @@ export default function () { - {new Date( - parseInt(entry.entity.properties.executed_at.integerValue), - ).toLocaleString()} + {new Date(entry.executed_at).toLocaleString()} @@ -141,7 +139,7 @@ export default function () { ACTION - {entry.entity.properties.action.stringValue} + {entry.action}