Skip to content

Commit

Permalink
Round to natural number
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Feb 8, 2024
1 parent 8aa49f2 commit f20cba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mainsite/components/TwoYearProjection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const TwoYearProjection: FC = () => {
title={t.eth_staked}
value={
<>
{formatOneDecimal(projectedStaking / 1e6)}
{Math.round(projectedStaking / 1e6)}
{t.numeric_million_abbrev} ETH
</>
}
Expand Down Expand Up @@ -164,7 +164,7 @@ const TwoYearProjection: FC = () => {

<Param
title={t.base_gas_price}
value={<>{formatOneDecimal(projectedBaseGasPrice)} Gwei</>}
value={<>{Math.round(projectedBaseGasPrice)} Gwei</>}
subValue={
<>
{t.fee_burn}
Expand Down

0 comments on commit f20cba7

Please sign in to comment.