Skip to content

Commit

Permalink
fix: update infoDetail computation to return specific metaContract by…
Browse files Browse the repository at this point in the history
… tokenIndex
  • Loading branch information
AricRedemption committed Nov 4, 2024
1 parent 4971e3f commit 908b0a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/nfts/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/pages/nfts/Transfer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
Expand Down

0 comments on commit 908b0a4

Please sign in to comment.