diff --git a/src/components/NFTBook/GiftDialog.vue b/src/components/NFTBook/GiftDialog.vue index 7c134f86f..c2650cfb2 100644 --- a/src/components/NFTBook/GiftDialog.vue +++ b/src/components/NFTBook/GiftDialog.vue @@ -154,6 +154,9 @@ export default { }; }, watch: { + value() { + this.selectedValue = this.value; + }, prefillGiftInfo: { handler(newVal) { this.fromName = newVal.fromName; @@ -179,7 +182,6 @@ export default { if (this.selectedValue === value) return; this.selectedValue = value; this.$emit('change', value); - this.$emit('update:value', value); }, }, }; diff --git a/src/components/NFTEditionSelect.vue b/src/components/NFTEditionSelect.vue index 9478e9680..7abd4262c 100644 --- a/src/components/NFTEditionSelect.vue +++ b/src/components/NFTEditionSelect.vue @@ -109,9 +109,14 @@ export default { return this.selectedItem?.priceLabel; }, }, + watch: { + value() { + this.selectedValue = this.value; + }, + }, mounted() { if (this.selectedValue !== this.value) { - this.$emit('update:value', this.selectedValue); + this.$emit('change', this.selectedValue); } }, methods: { @@ -119,7 +124,6 @@ export default { if (this.selectedValue === value) return; this.selectedValue = value; this.$emit('change', value); - this.$emit('update:value', value); this.$emit('reset-custom-price'); }, handleClickGiftButton() { diff --git a/src/pages/nft/class/_classId/index.vue b/src/pages/nft/class/_classId/index.vue index c97df56f9..4fd640376 100644 --- a/src/pages/nft/class/_classId/index.vue +++ b/src/pages/nft/class/_classId/index.vue @@ -59,7 +59,7 @@ class="w-full !h-[32px] !rounded-[10px] border-[#EBEBEB]" size="tiny" :is-disabled="isAllSoldOut" - @click="handleGiftFromEditionSelector" + @click="handleGiftButtonClick" >