diff --git a/js/templates/buyWizard.html b/js/templates/buyWizard.html
index 73e343eff..4fa2bd532 100644
--- a/js/templates/buyWizard.html
+++ b/js/templates/buyWizard.html
@@ -1,6 +1,6 @@
-
+
diff --git a/js/views/buyWizardVw.js b/js/views/buyWizardVw.js
index 9bd2808b0..fba5eedaf 100644
--- a/js/views/buyWizardVw.js
+++ b/js/views/buyWizardVw.js
@@ -398,15 +398,16 @@ module.exports = baseModal.extend({
$currentIframe = this.$buyWizardMap.find('iframe');
$currentIframe.addClass('blurMore');
- if (address && address.street && address.city && address.state && address.postal_code) {
- addressString = address.street + ", " + address.city + ", " + address.state + " " + address.postal_code + " " + address.displayCountry;
+ if (address) {
+ addressString = address.street + " " + address.city + " " + address.state + " " + address.postal_code + " " + address.displayCountry;
+ addressString = addressString.trim();
} else {
// if address is invalid, we'll create a dummy address for which google maps will show a map of the world
addressString = "123 Street, City, State 12345 Country";
}
addressString = encodeURIComponent(addressString);
- var $iFrame = $('
');
+ var $iFrame = $('
');
if ($currentIframe.length) {
this.$buyWizardMap.find('.js-mapSpinner').removeClass('hide');
@@ -463,6 +464,7 @@ module.exports = baseModal.extend({
this.showMaps();
if (this.userModel.get('shipping_addresses').length === 0){
this.createNewAddress();
+ this.displayMap();
$('.js-buyWizardAddressBack').show();
$('.js-buyWizardNewAddressCancel').hide();
}