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/ diff --git a/assets/js/amazon-app-widgets.js b/assets/js/amazon-app-widgets.js index 3d3c672e..84060fbf 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 ); } }