Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use current_status property for user card
  • Loading branch information
regalijan committed Oct 22, 2023
1 parent a4524cf commit 24bbc98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/hammer.tsx
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 24bbc98

Please sign in to comment.