diff --git a/src/pages/nfts/Detail.vue b/src/pages/nfts/Detail.vue index 37287d7..5aa4c5a 100644 --- a/src/pages/nfts/Detail.vue +++ b/src/pages/nfts/Detail.vue @@ -30,7 +30,7 @@ const { isLoading, data: metaContracts } = useMetacontractsQuery( const infoDetail = computed(() => { if (metaContracts.value?.length) { - return metaContracts.value[0] + return metaContracts.value.find((metaContract) => metaContract.tokenIndex === tokenIndex.value) } }) diff --git a/src/pages/nfts/Transfer.vue b/src/pages/nfts/Transfer.vue index cd49ad4..6dfd737 100644 --- a/src/pages/nfts/Transfer.vue +++ b/src/pages/nfts/Transfer.vue @@ -33,7 +33,7 @@ const { data: metaContracts } = useMetacontractsQuery( const infoDetail = computed(() => { if (metaContracts.value?.length) { - return metaContracts.value[0] + return metaContracts.value.find((metaContract) => metaContract.tokenIndex === tokenIndex.value) } })