mirror of
https://github.com/HabitRPG/habitica.git
synced 2026-04-21 03:08:29 -05:00
Revert "fix(amazon): make sure to use up to date data"
This reverts commit 298a79b58d.
This commit is contained in:
@@ -60,7 +60,7 @@ export default {
|
||||
this.buttonId = `AmazonPayButton-${uuid.v4()}`;
|
||||
},
|
||||
mounted () {
|
||||
this.amazonPaymentsInit(this.amazonData);
|
||||
this.amazonPaymentsInit(this.amazonData); // TOOD clone
|
||||
if (this.isAmazonReady) return this.setupAmazon();
|
||||
|
||||
this.$store.watch(state => state.isAmazonReady, (isAmazonReady) => {
|
||||
@@ -90,8 +90,6 @@ 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,
|
||||
|
||||
Reference in New Issue
Block a user