Skip to content

Commit 10b59d7

Browse files
committed
fix hmt balance
1 parent cbbec09 commit 10b59d7

File tree

1 file changed

+2
-1
lines changed
  • packages/apps/dashboard/client/src/pages/SearchResults/HmtBalance

1 file changed

+2
-1
lines changed

packages/apps/dashboard/client/src/pages/SearchResults/HmtBalance/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const HmtBalance: FC<Props> = ({ balance }) => {
2323
return <span>...</span>;
2424
}
2525

26-
const _balance = Number(balance) * 1e18;
26+
const _balance =
27+
Number(balance) < 1 ? Number(balance) * 1e18 : Number(balance);
2728
const balanceInDollars = balance ? (_balance * data).toFixed(2) : 0;
2829

2930
return (

0 commit comments

Comments
 (0)