Merge pull request #2945 from matiu/bug/unitName

use unit name
This commit is contained in:
Gustavo Maximiliano Cortez 2015-07-01 11:04:34 -03:00
commit 3f9123b23b

View file

@ -175,11 +175,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
// Update this JIC.
var config = configService.getSync().wallet.settings;
self.unitName = config.unitName;
//prefs.email (may come from arguments)
prefs.language = self.defaultLanguageIsoCode;
prefs.unit = self.unitName.toLowerCase();
prefs.unit = config.unitCode;
var clients = [];
if (opts.saveAll) {