diff --git a/src/pages/nft/claim/index.vue b/src/pages/nft/claim/index.vue index 6019c2f37..84652da10 100644 --- a/src/pages/nft/claim/index.vue +++ b/src/pages/nft/claim/index.vue @@ -827,7 +827,7 @@ export default { return; } let price; - let priceIndex; + let { priceIndex } = this; if (this.cartId) { const { data } = await this.$api.get( getNFTBookCartStatusEndpoint({ @@ -863,7 +863,7 @@ export default { token: this.token, }) ); - ({ price } = data); + ({ price, priceIndex } = data); const { giftInfo, isPhysicalOnly, diff --git a/src/pages/nft/gift/index.vue b/src/pages/nft/gift/index.vue index 57e3ed0dc..f79363fb8 100644 --- a/src/pages/nft/gift/index.vue +++ b/src/pages/nft/gift/index.vue @@ -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: { @@ -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; }, @@ -131,7 +133,7 @@ export default { return; } let price; - let priceIndex; + let { priceIndex } = this; if (this.cartId) { const { data } = await this.$api.get(