mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-12 23:08:35 +00:00
fix(amazon): make sure to use up to date data
This commit is contained in:
parent
77f3bb53de
commit
298a79b58d
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue