From 24bbc98624d363e91331730fb2d3a179033988e2 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 22 Oct 2023 17:24:00 -0400 Subject: [PATCH] Use current_status property for user card --- app/routes/hammer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/hammer.tsx b/app/routes/hammer.tsx index 850d167..6b851fd 100644 --- a/app/routes/hammer.tsx +++ b/app/routes/hammer.tsx @@ -102,7 +102,7 @@ export default function () { user, }: { history: { [k: string]: any }[]; - user: { avatar: string | null; id: number; name: string }; + user: { avatar: string | null; current_status: string; id: number; name: string }; } = await historyResp.json(); if (!history.length) { @@ -122,7 +122,7 @@ export default function () { setAvatarUrl(user.avatar ?? "https://i.hep.gg/floppa"); setUid(user.id.toString()); setUsername(user.name); - setStatus(history[history.length - 1].entity.properties.action.stringValue); + setStatus(user.current_status); for (const entry of history) { const url = entry.entity.properties.evidence.stringValue;