Skip to content

Commit 11d9b06

Browse files
committed
Remove commas from heights
1 parent a4e5f7d commit 11d9b06

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/pages/Block.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ export function Block() {
7070
<Layout>
7171
<div className='flex items-baseline gap-3 mb-2'>
7272
<h1 className='text-3xl font-semibold'>
73-
Block{' '}
74-
{block?.rewardChainBlock.height.toLocaleString() ?? 'loading...'}
73+
Block {block?.rewardChainBlock.height.toString() ?? 'loading...'}
7574
</h1>
7675
{timestamp && (
7776
<div className='text-lg text-muted-foreground'>

src/pages/Coin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export function Coin() {
359359
<ColoredLink
360360
href={`/block/${createdBlock?.headerHash ? toHex(createdBlock.headerHash) : ''}`}
361361
>
362-
{coinRecord?.confirmedBlockIndex?.toLocaleString()}
362+
{coinRecord?.confirmedBlockIndex?.toString()}
363363
</ColoredLink>
364364
{createdBlock?.timestamp && (
365365
<span className='text-muted-foreground'>
@@ -385,7 +385,7 @@ export function Coin() {
385385
<ColoredLink
386386
href={`/block/${spentBlock?.headerHash ? toHex(spentBlock.headerHash) : ''}`}
387387
>
388-
{coinRecord?.spentBlockIndex?.toLocaleString()}
388+
{coinRecord?.spentBlockIndex?.toString()}
389389
</ColoredLink>
390390
{spentBlock?.timestamp && (
391391
<span className='text-muted-foreground'>

src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function Block({ blockRecord }: BlockProps) {
161161
<LayersIcon className='w-4 h-4 text-muted-foreground' />
162162
)}
163163
<div className='text-lg font-medium'>
164-
Block {blockRecord.height.toLocaleString()}
164+
Block {blockRecord.height.toString()}
165165
</div>
166166
</div>
167167

0 commit comments

Comments
 (0)