Commit 3c11e94 1 parent 6016da3 commit 3c11e94 Copy full SHA for 3c11e94
File tree 2 files changed +5
-5
lines changed
packages/profile/src/components/inventory/token
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,7 @@ export function SendAmount({
23
23
( e : React . MouseEvent < HTMLDivElement | HTMLButtonElement > ) => {
24
24
e . preventDefault ( ) ;
25
25
if ( ! token ) return ;
26
- setAmount (
27
- parseFloat ( formatBalance ( token . balance ?? 0n ) . replace ( "~" , "" ) ) ,
28
- ) ;
26
+ setAmount ( parseFloat ( formatBalance ( token . balance ?? 0n ) ) ) ;
29
27
} ,
30
28
[ token , setAmount ] ,
31
29
) ;
@@ -50,7 +48,7 @@ export function SendAmount({
50
48
? convertTokenAmountToUSD ( token . balance , token . decimals , token . price )
51
49
: undefined
52
50
}
53
- balance = { parseFloat ( formatBalance ( token . balance ?? 0n ) . replace ( "~" , "" ) ) }
51
+ balance = { parseFloat ( formatBalance ( token . balance ?? 0n ) ) }
54
52
symbol = { token . symbol }
55
53
decimals = { token . decimals ?? 18 }
56
54
setError = { setError }
Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ export function Tokens() {
44
44
className = "hover:opacity-80"
45
45
>
46
46
< div className = "flex items-center gap-2" >
47
- { token . balance ? formatBalance ( token . balance ) : "..." }
47
+ { token . balance !== undefined
48
+ ? formatBalance ( token . balance )
49
+ : "..." }
48
50
< span className = "text-foreground-400" > { token . symbol } </ span >
49
51
</ div >
50
52
You can’t perform that action at this time.
0 commit comments