chore: update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user