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;