chore: update

This commit is contained in:
2026-03-17 09:18:23 +01:00
parent 008aeab231
commit af74b39b22
10 changed files with 149 additions and 103 deletions
@@ -792,15 +792,9 @@ export default function UsersScreen() {
<Text style={styles.statLabel}>Cmd</Text>
</View>
{pointsEnabled && poolNames.map((name, i) => {
let value: number;
let color: string;
if (i === 0) { value = item.clientData!.point; color = colors.success; }
else if (i === 1) { value = item.clientData!.points_zipette; color = colors.info; }
else {
const key = poolKeys[i] ?? "";
value = item.clientData!.points_extra?.[key] ?? 0;
color = colors.warning;
}
const key = poolKeys[i] ?? "";
const value = key ? (item.clientData!.points_extra?.[key] ?? 0) : 0;
const color = i === 0 ? colors.success : i === 1 ? colors.info : colors.warning;
return (
<View key={i} style={styles.stat}>
<Text style={[styles.statValue, { color }]}>{value}</Text>