moved bch above btc in amount screen
This commit is contained in:
parent
6194071569
commit
a1c410da02
1 changed files with 12 additions and 12 deletions
|
|
@ -31,18 +31,6 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
var configCache = configService.getSync();
|
var configCache = configService.getSync();
|
||||||
availableUnits = [];
|
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({
|
var hasBCHWallets = profileService.getWallets({
|
||||||
coin: 'bch'
|
coin: 'bch'
|
||||||
}).length;
|
}).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;
|
unitIndex = 0;
|
||||||
|
|
||||||
if (data.stateParams.coin) {
|
if (data.stateParams.coin) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue