data address formatting update;

This commit is contained in:
tmshv committed 2015-07-09 06:37:50 +03:00
1 parent a43c8b012a
commit 719c8888c2
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ angular.module("hudozhka.data", [])
email: "hudozka@gmail.com",
address: ["г. Шлиссельбург", "ул. 18 января", "д. 3"]
.reduce(function(address, item){
return address + ' ' + item.replace(' ', String.fromCharCode(0xA0));
return address + (address == '' ? '' : ' ') + item.replace(' ', String.fromCharCode(0xA0));
}, '')
};
});