Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use not-stupid properties on hammer page
  • Loading branch information
regalijan committed Mar 21, 2024
1 parent 8e5ff1f commit ee15d21
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/routes/hammer.tsx
Expand Up @@ -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;
Expand All @@ -131,17 +131,15 @@ export default function () {
<Card>
<CardHeader>
<Heading size="md">
{new Date(
parseInt(entry.entity.properties.executed_at.integerValue),
).toLocaleString()}
{new Date(entry.executed_at).toLocaleString()}
</Heading>
</CardHeader>
<CardBody>
<Stack divider={<StackDivider />} spacing="4">
<Box>
<Heading size="xs">ACTION</Heading>
<Text pt="2" size="sm">
{entry.entity.properties.action.stringValue}
{entry.action}
</Text>
</Box>
<Box>
Expand Down

0 comments on commit ee15d21

Please sign in to comment.