fix: correct operator precedence in totalPlaytime calculation

This commit is contained in:
2026-03-21 21:30:06 +01:00
parent 9d240c3a80
commit 14faaf87b7

View File

@@ -29,7 +29,7 @@ export function StatisticsDashboard({ stats }: StatisticsDashboardProps) {
<StatCard title="Total Sessions" value={stats.totalSessions ?? 0} icon="🏁" /> <StatCard title="Total Sessions" value={stats.totalSessions ?? 0} icon="🏁" />
<StatCard <StatCard
title="Total Playtime" title="Total Playtime"
value={`${Math.round(stats.totalPlaytime ?? 0 / 60)}h`} value={`${Math.round((stats.totalPlaytime ?? 0) / 60)}h`}
icon="⏱️" icon="⏱️"
/> />
<StatCard <StatCard