Skip to content

Commit

Permalink
feat: update transaction and group visuals with accurate values (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
satishccy authored and neilcampbell committed Sep 3, 2024
1 parent c37b980 commit b281ec0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@
<div
class="gap-0.5 flex justify-center"
>
≈2.8
2.770045
<svg
class="h-auto w-2.5"
height="1em"
Expand Down Expand Up @@ -1138,7 +1138,7 @@
class="flex items-center gap-1"
>
<span>
≈0.59
0.586582
</span>
<a
class="underline text-asset-transfer"
Expand Down Expand Up @@ -1242,7 +1242,7 @@
class="flex items-center gap-1"
>
<span>
≈0.59
0.586582
</span>
<a
class="underline text-asset-transfer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@
class="flex items-center gap-1"
>
<span>
≈1
1.048576
</span>
<a
class="underline text-asset-transfer"
Expand Down Expand Up @@ -1111,7 +1111,7 @@
<div
class="gap-0.5 flex justify-center"
>
≈0.73
0.732252
<svg
class="h-auto w-2.5"
height="1em"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@
<div
class="gap-0.5 flex justify-center"
>
≈2.8
2.770045
<svg
class="h-auto w-2.5"
height="1em"
Expand Down Expand Up @@ -1138,7 +1138,7 @@
class="flex items-center gap-1"
>
<span>
≈0.59
0.586582
</span>
<a
class="underline text-asset-transfer"
Expand Down Expand Up @@ -1242,7 +1242,7 @@
class="flex items-center gap-1"
>
<span>
≈0.59
0.586582
</span>
<a
class="underline text-asset-transfer"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/compact-amount.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Decimal from 'decimal.js'

export const compactAmount = (amount: Decimal | number) => {
if (amount.toString().length < 8) {
if (amount.toString().length < 9) {
return amount.toString()
}

Expand Down

0 comments on commit b281ec0

Please sign in to comment.