mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-26 08:33:12 +09:00
Fix display of stats in Web UI when empty
This commit is contained in:
1 parent
5ba9f94b7e
commit
2496e756f1
1 file changed
+3
-3
@@ -285,13 +285,13 @@ export default function UserViewPage() {
|
|||||||
<SectionHeader title="Player stats" />
|
<SectionHeader title="Player stats" />
|
||||||
<Descriptions size="small" bordered column={{ xs: 1, sm: 2, lg: 3 }}>
|
<Descriptions size="small" bordered column={{ xs: 1, sm: 2, lg: 3 }}>
|
||||||
<Descriptions.Item label="Total play time">
|
<Descriptions.Item label="Total play time">
|
||||||
{user["player_stats"]["online_time_ms"] && formatDuration(user["player_stats"]["online_time_ms"])}
|
{formatDuration(user["player_stats"]["online_time_ms"] || 0)}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="Total join count">
|
<Descriptions.Item label="Total join count">
|
||||||
{user["player_stats"]["join_count"]}
|
{user["player_stats"]["join_count"] || 0}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="Last seen">
|
<Descriptions.Item label="Last seen">
|
||||||
{formatLastSeen(user)}
|
{formatLastSeen(user) || " "}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
<SectionHeader title="Instance stats" />
|
<SectionHeader title="Instance stats" />
|
||||||
|
|||||||
Reference in new issue
Block a user