Skip to content

Commit 04f8da7

Browse files
committed
round number of minutes
1 parent 8bc0f2c commit 04f8da7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/userLookup.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ const UserPlaytime = (props: { id: number }) => {
513513
.sort((a, b) => b.totalMinutes - a.totalMinutes)
514514
.map((playtime) => (
515515
<div key={playtime.id}>
516-
{playtime.roleId}: {playtime.totalMinutes / 60} hours
516+
{playtime.roleId}:{" "}
517+
{Math.round((playtime.totalMinutes / 60) * 100) / 100} hours
517518
</div>
518519
))}
519520
</div>

0 commit comments

Comments
 (0)