Use current_status property for user card
This commit is contained in:
parent
a4524cfea4
commit
24bbc98624
@ -102,7 +102,7 @@ export default function () {
|
|||||||
user,
|
user,
|
||||||
}: {
|
}: {
|
||||||
history: { [k: string]: any }[];
|
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();
|
} = await historyResp.json();
|
||||||
|
|
||||||
if (!history.length) {
|
if (!history.length) {
|
||||||
@ -122,7 +122,7 @@ export default function () {
|
|||||||
setAvatarUrl(user.avatar ?? "https://i.hep.gg/floppa");
|
setAvatarUrl(user.avatar ?? "https://i.hep.gg/floppa");
|
||||||
setUid(user.id.toString());
|
setUid(user.id.toString());
|
||||||
setUsername(user.name);
|
setUsername(user.name);
|
||||||
setStatus(history[history.length - 1].entity.properties.action.stringValue);
|
setStatus(user.current_status);
|
||||||
|
|
||||||
for (const entry of history) {
|
for (const entry of history) {
|
||||||
const url = entry.entity.properties.evidence.stringValue;
|
const url = entry.entity.properties.evidence.stringValue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user