From fdf2db4b3180b0ed47b3f5fb4f00a0abf2e399f7 Mon Sep 17 00:00:00 2001 From: David Albert Date: Tue, 7 Jul 2020 14:58:26 +0200 Subject: [PATCH 1/3] Add .idea to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 06a489bb..62291cf2 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ Thumbs.db .project .settings* .vscode +.idea/ sftp-config.json /deploy/ /wc-apidocs/ From 22e6f7949cd599e2b1ae15910485fb97f539639c Mon Sep 17 00:00:00 2001 From: David Albert Date: Tue, 7 Jul 2020 14:59:10 +0200 Subject: [PATCH 2/3] Fixed endless loop in checkout --- assets/js/amazon-app-widgets.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/amazon-app-widgets.js b/assets/js/amazon-app-widgets.js index 3d3c672e..84eaaf73 100644 --- a/assets/js/amazon-app-widgets.js +++ b/assets/js/amazon-app-widgets.js @@ -394,6 +394,11 @@ jQuery( function( $ ) { nonce : amazon_payments_advanced_params.multi_currency_nonce, }, success : function( response ) { + if (response && walletWidget !== null) { + if (response === walletWidget.getPresentmentCurrency()) { + return; + } + } wcAmazonWalletWidget( response ); } } From 0bcc226ff19bfeecf0b753d56c1ed3caaa1a1ac9 Mon Sep 17 00:00:00 2001 From: Laura Date: Fri, 29 Jan 2021 20:38:18 -0300 Subject: [PATCH 3/3] Add space to brackets content --- assets/js/amazon-app-widgets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/amazon-app-widgets.js b/assets/js/amazon-app-widgets.js index 84eaaf73..84060fbf 100644 --- a/assets/js/amazon-app-widgets.js +++ b/assets/js/amazon-app-widgets.js @@ -394,8 +394,8 @@ jQuery( function( $ ) { nonce : amazon_payments_advanced_params.multi_currency_nonce, }, success : function( response ) { - if (response && walletWidget !== null) { - if (response === walletWidget.getPresentmentCurrency()) { + if ( response && walletWidget !== null ) { + if ( response === walletWidget.getPresentmentCurrency() ) { return; } }