diff --git a/public/views/includes/sidebar.html b/public/views/includes/sidebar.html
index 9088e4885..21d6ca123 100644
--- a/public/views/includes/sidebar.html
+++ b/public/views/includes/sidebar.html
@@ -30,7 +30,7 @@
Buy and Sell
-
+
diff --git a/src/js/controllers/amazon.js b/src/js/controllers/amazon.js
index 1997ac57d..809e2b816 100644
--- a/src/js/controllers/amazon.js
+++ b/src/js/controllers/amazon.js
@@ -22,6 +22,7 @@ angular.module('copayApp.controllers').controller('amazonController',
}
this.updatePendingGiftCards = lodash.debounce(function() {
+ var self = this;
amazonService.getPendingGiftCards(function(err, gcds) {
lodash.forEach(gcds, function(dataFromStorage) {
diff --git a/util/amazon.js b/util/amazon.js
index ec1aa52de..310593e1b 100755
--- a/util/amazon.js
+++ b/util/amazon.js
@@ -13,7 +13,7 @@ try {
var json = JSON.parse(file);
-content = content + '\nwindow.amazon_sandbox_bitpay_api_token="' + json.sandbox.bitpay_api_token + '";';
+var content = '\nwindow.amazon_sandbox_bitpay_api_token="' + json.sandbox.bitpay_api_token + '";';
content = content + '\nwindow.amazon_sandbox_bitpay_api_url="' + json.sandbox.bitpay_api_url + '";';
content = content + '\nwindow.amazon_bitpay_api_token="' + json.production.bitpay_api_token + '";';
content = content + '\nwindow.amazon_bitpay_api_url="' + json.production.bitpay_api_url + '";';