Skip to content

Commit e2baa27

Browse files
committed
beautify run numbers of rewards
1 parent e8f7d63 commit e2baa27

File tree

1 file changed

+2
-1
lines changed
  • apps/web/src/components/layouts/AppLayout/Header/Rewards/Content

1 file changed

+2
-1
lines changed

apps/web/src/components/layouts/AppLayout/Header/Rewards/Content/RewardItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Text } from '@latitude-data/web-ui/atoms/Text'
88
import { cn } from '@latitude-data/web-ui/utils'
99
import { useMemo } from 'react'
1010
import { REWARD_VALUES, RewardType } from '@latitude-data/core/constants'
11+
import { formatCount } from '$/lib/formatCount'
1112

1213
export function RewardItem({
1314
description,
@@ -62,7 +63,7 @@ export function RewardItem({
6263
size='large'
6364
className='flex-shrink-0'
6465
>
65-
+{REWARD_VALUES[type]} runs
66+
+{formatCount(REWARD_VALUES[type])} runs
6667
</Badge>
6768
</div>
6869
</Button>

0 commit comments

Comments
 (0)