Skip to content

Commit

Permalink
📈 Fix priceIndex not set on purchase event
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 16, 2024
1 parent 70942d9 commit 131b7df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/nft/claim/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ export default {
return;
}
let price;
let priceIndex;
let { priceIndex } = this;
if (this.cartId) {
const { data } = await this.$api.get(
getNFTBookCartStatusEndpoint({
Expand Down Expand Up @@ -863,7 +863,7 @@ export default {
token: this.token,
})
);
({ price } = data);
({ price, priceIndex } = data);
const {
giftInfo,
isPhysicalOnly,
Expand Down
6 changes: 4 additions & 2 deletions src/pages/nft/gift/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export default {
classId: this.$route.query.class_id,
collectionId: this.$route.query.collection_id,
cartItems: [],
priceIndex: this.$route.query.price_index,
};
},
computed: {
Expand All @@ -104,6 +103,9 @@ export default {
paymentId() {
return this.$route.query.payment_id;
},
priceIndex() {
return this.$route.query.price_index;
},
token() {
return this.$route.query.claiming_token;
},
Expand Down Expand Up @@ -131,7 +133,7 @@ export default {
return;
}
let price;
let priceIndex;
let { priceIndex } = this;
if (this.cartId) {
const { data } = await this.$api.get(
Expand Down

0 comments on commit 131b7df

Please sign in to comment.