Merge pull request #2895 from greggzigler/bug/configWalletNotFound

When running from browser for first time configCache.wallet is not found
This commit is contained in:
Matias Alejo Garcia 2015-06-17 12:27:07 -03:00
commit b15a0371c3

View file

@ -57,6 +57,9 @@ angular.module('copayApp.services').factory('configService', function(storageSer
if (!configCache.bws) {
configCache.bws = defaultConfig.bws;
}
if (!configCache.wallet) {
configCache.wallet = defaultConfig.wallet;
}
if (!configCache.wallet.settings.unitCode) {
configCache.wallet.settings.unitCode = defaultConfig.wallet.settings.unitCode;
}