token amount bugfixes
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
import {useStore} from "@/store/store";
|
||||
import {getToken} from "@/blockchain/token.js";
|
||||
import {FixedNumber} from "ethers";
|
||||
import {computed, ref} from "vue";
|
||||
import {computed} from "vue";
|
||||
|
||||
const s = useStore()
|
||||
const props = defineProps(['addr', 'amount', 'raw'])
|
||||
const token = await getToken(props.addr)
|
||||
const token = await getToken(s.chainId, props.addr)
|
||||
const fmtAmount = computed(() => {
|
||||
if( props.amount === null || props.amount === undefined )
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user