Asset view touchup; withdrawal of zero disallowed

This commit is contained in:
tim
2024-10-22 17:24:59 -04:00
parent d33eca6931
commit a7ebdf1988
2 changed files with 4 additions and 4 deletions

View File

@@ -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
})