Asset view touchup; withdrawal of zero disallowed
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
:on-withdraw="onWithdrawNative" :on-wrap="()=>wrapShow=true"/>
|
||||
</suspense>
|
||||
<suspense v-for="(amount,addr) of balances">
|
||||
<token-row :chain-id="s.chainId" :addr="addr" :amount="amount" :onWithdraw="onWithdraw"/>
|
||||
<token-row v-if="BigInt(amount)!==0n" :chain-id="s.chainId" :addr="addr" :amount="amount" :onWithdraw="onWithdraw"/>
|
||||
</suspense>
|
||||
</tbody>
|
||||
</v-table>
|
||||
@@ -83,7 +83,7 @@ const balances = computed(()=>{
|
||||
const empty = computed(()=>{
|
||||
if(nativeBalance.value!==0n) return false
|
||||
for( const v of Object.values(balances.value) )
|
||||
if(v!==0n)
|
||||
if(BigInt(v)!==0n)
|
||||
return false
|
||||
return true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user