Skip to content

Commit

Permalink
📈 Fix missing isNFTBook flag in event
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 14, 2024
1 parent 4fad8d7 commit ef107b1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/mixins/nft.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ export default {
name: this.NFTName,
},
],
isNFTBook: this.nftIsNFTBook,
};
logPurchaseFlowEvent(this, 'add_to_cart', purchaseEventParams);
logPurchaseFlowEvent(this, 'begin_checkout', purchaseEventParams);
Expand Down Expand Up @@ -1088,6 +1089,7 @@ export default {
],
price: this.NFTPriceUSD,
currency: 'USD',
isNFTBook: this.nftIsNFTBook,
});
if (this.uiTxTargetClassId === classId) {
this.uiSetTxStatus(TX_STATUS.COMPLETED);
Expand Down
1 change: 1 addition & 0 deletions src/pages/nft/class/_classId/_nftId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ export default {
],
price: this.NFTPriceUSD,
currency: 'USD',
isNFTBook: this.nftIsNFTBook,
});
}
},
Expand Down
4 changes: 3 additions & 1 deletion src/pages/nft/class/_classId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ export default {
],
price: this.NFTPriceUSD,
currency: 'USD',
isNFTBook: this.nftIsNFTBook,
});
}
Expand Down Expand Up @@ -1063,7 +1064,7 @@ export default {
],
price: totalPrice,
currency: 'USD',
isNFTBook: true,
isNFTBook: this.nftIsNFTBook,
};
},
async handleClickMoreCollector() {
Expand Down Expand Up @@ -1493,6 +1494,7 @@ export default {
],
price: this.NFTPriceUSD,
currency: 'USD',
isNFTBook: this.nftIsNFTBook,
});
},
handleInputCustomPrice(price) {
Expand Down
1 change: 1 addition & 0 deletions src/pages/nft/collection/_collectionId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ export default {
],
price: this.collectionPrice,
currency: 'USD',
isNFTBook: this.collectionIsBook,
});
},
methods: {
Expand Down

0 comments on commit ef107b1

Please sign in to comment.