fix: correct operator precedence in totalPlaytime calculation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user