diff --git a/src/components/game/info/playtime/GameInfoPlaytimeItem.tsx b/src/components/game/info/playtime/GameInfoPlaytimeItem.tsx index 514b37f..37ee851 100644 --- a/src/components/game/info/playtime/GameInfoPlaytimeItem.tsx +++ b/src/components/game/info/playtime/GameInfoPlaytimeItem.tsx @@ -9,7 +9,8 @@ interface Props { } const GameInfoPlaytimeItem = ({ name, value, isLoading }: Props) => { - const valueHours = Math.ceil(value || 0 / 3600); + const valueToUse = value ?? 0; + const valueHours = Math.ceil(valueToUse / 3600); return ( { > {valueHours} Hours + {isLoading && } ); };