Skip to content

Commit 647b0fd

Browse files
committed
Fixed Workout History Details
1 parent ebea1a2 commit 647b0fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

KonditionExpo/app/(tabs)/history.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,13 @@ const WorkoutHistoryScreen = () => {
222222
<View style={styles.header}>
223223
<Text style={styles.headerTitle}>Workout History</Text>
224224
<Text style={styles.headerSubtitle}>
225-
{workouts.length} {workouts.length === 1 ? 'workout' : 'workouts'} completed
225+
{workouts.length} Total —{" "}
226+
{workouts.filter(w => !w.is_completed).length} In Progress —{" "}
227+
{workouts.filter(w => w.is_completed).length} Finished
226228
</Text>
227229
</View>
228230

231+
229232
<ScrollView
230233
style={styles.scrollView}
231234
contentContainerStyle={styles.scrollContent}

0 commit comments

Comments
 (0)