Skip to content

Commit

Permalink
bugs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matt5346 committed Mar 5, 2022
1 parent b68bc8d commit 77ee0c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/views/ChooseNFT.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ export default {
// need smart contracts for bundling NFT
if (this.nftObj.token_id && this.nftObj.token_id.length > 0) {
if (item.tokenId === this.nftObj.token_id[0]) {
if (item.token_id === this.nftObj.token_id[0]) {
this.nftObj.token_id.splice(index, 1)
} else {
this.nftObj.token_id.splice(index, 1)
this.nftObj.token_id.push(item.token_id)
}
} else {
this.nftObj.token_id.push(item.token_id)
Expand Down
2 changes: 1 addition & 1 deletion src/views/SendNFT.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div v-if="getNftsAreLoading" class="loading-container">
<spinner :size="92" color="#000" />
</div>
<main>
<main v-else>
<transition name="fade">
<div v-if="nftObj.token_id && nftObj.token_id.length">
<h1 class="h1--no-logo">Send NFTs</h1>
Expand Down

0 comments on commit 77ee0c3

Please sign in to comment.