diff --git a/components/stats/SessionsSummaryCards.tsx b/components/stats/SessionsSummaryCards.tsx index e755ca8..464a73a 100644 --- a/components/stats/SessionsSummaryCards.tsx +++ b/components/stats/SessionsSummaryCards.tsx @@ -12,10 +12,14 @@ function formatHours(ms: number): string { return `${(ms / 3_600_000).toFixed(1)}h`; } +function formatReplays(count: number): string { + return count === 0 ? "-" : `${count}×`; +} + export function SessionsSummaryCards({ summary }: { summary: SessionsSummary }) { return (
-
+
Completed sessions @@ -36,10 +40,13 @@ export function SessionsSummaryCards({ summary }: { summary: SessionsSummary }) {Math.round(summary.avgDurationMs / 60_000)}m + + + Replays + + {formatReplays(summary.totalReplays)} +
- - Replayed {summary.totalReplays}× - {summary.durationPerDevice.length > 0 && (