Skip to content

Commit

Permalink
Merge pull request #924 from liquality/bugfix/liq-206-nft-tab-not-acc…
Browse files Browse the repository at this point in the history
…essible-in-overview-screen

Fixing small check for NFTs
  • Loading branch information
beemi authored Nov 14, 2022
2 parents d1c20ac + 7120507 commit 9fbe6b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/components/WalletAccounts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</ListItem>
<div class="account-assets" :class="{ active: shouldExpandAccount(account) }">
<ListItem
v-if="account.nfts && !isAssetList && hasNFTActivity(account)"
v-if="!isAssetList && (hasNft(account) || hasNFTActivity(account))"
@item-selected="
$router.push({
path: `/wallet/nfts/activity/${account.id}`,
Expand Down Expand Up @@ -216,6 +216,10 @@ export default {
this.activity.filter((item) => item.type === 'NFT' && item.accountId === account.id)
.length > 0
)
},
hasNft(account) {
const { nfts } = account
return !!(nfts && nfts.length)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Swap/Swap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ export default {
return getSwapProvider(this.activeNetwork, this.selectedQuote.provider)
},
defaultAmount() {
return this.max;
return this.max
},
isPairAvailable() {
const liqualityMarket = this.networkMarketData?.find(
Expand Down
4 changes: 1 addition & 3 deletions src/views/Swap/SwapProvidersInfoModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
<ul>
<li v-for="provider in uniqueProvides" :key="provider.id" class="py-1 px-2">
<span class="d-flex align-items-center"
><img :src="getProviderIcon(provider.id)" class="mr-2" />{{
provider.name
}}</span
><img :src="getProviderIcon(provider.id)" class="mr-2" />{{ provider.name }}</span
>
</li>
</ul>
Expand Down

0 comments on commit 9fbe6b3

Please sign in to comment.