From 298a79b58d334c874d2d08726d60aac1eb261588 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Mon, 4 Mar 2019 22:00:40 +0100 Subject: [PATCH] fix(amazon): make sure to use up to date data --- website/client/components/payments/amazonButton.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/client/components/payments/amazonButton.vue b/website/client/components/payments/amazonButton.vue index 35e33c2af7..bd6e12b5cd 100644 --- a/website/client/components/payments/amazonButton.vue +++ b/website/client/components/payments/amazonButton.vue @@ -60,7 +60,7 @@ export default { this.buttonId = `AmazonPayButton-${uuid.v4()}`; }, mounted () { - this.amazonPaymentsInit(this.amazonData); // TOOD clone + this.amazonPaymentsInit(this.amazonData); if (this.isAmazonReady) return this.setupAmazon(); this.$store.watch(state => state.isAmazonReady, (isAmazonReady) => { @@ -90,6 +90,8 @@ export default { this.$root.$emit('habitica::pay-with-amazon', this.amazonPayments); }, authorization: () => { + this.amazonPaymentsInit(this.amazonData); + window.amazon.Login.authorize({ scope: 'payments:widget', popup: true,