moved bch above btc in amount screen

This commit is contained in:
Kadir Sekha 2017-11-15 18:24:48 +09:00
commit a1c410da02

View file

@ -31,18 +31,6 @@ angular.module('copayApp.controllers').controller('amountController', function($
var configCache = configService.getSync();
availableUnits = [];
var hasBTCWallets = profileService.getWallets({
coin: 'btc'
}).length;
if (hasBTCWallets) {
availableUnits.push({
name: 'Bitcoin',
id: 'btc',
shortName: (configCache.bitcoinAlias || defaults.bitcoinAlias).toUpperCase(),
});
}
var hasBCHWallets = profileService.getWallets({
coin: 'bch'
}).length;
@ -55,6 +43,18 @@ angular.module('copayApp.controllers').controller('amountController', function($
});
};
var hasBTCWallets = profileService.getWallets({
coin: 'btc'
}).length;
if (hasBTCWallets) {
availableUnits.push({
name: 'Bitcoin',
id: 'btc',
shortName: (configCache.bitcoinAlias || defaults.bitcoinAlias).toUpperCase(),
});
}
unitIndex = 0;
if (data.stateParams.coin) {