In Recent Transactions it displays the crypto amount if the fiat display setting is selected but the fiat amount is not ready yet.
This commit is contained in:
parent
e4d5100753
commit
429e9c8446
1 changed files with 2 additions and 4 deletions
|
|
@ -933,15 +933,13 @@ angular.module('copayApp.services')
|
|||
x.types = [x.type];
|
||||
|
||||
if (x.data && x.data.amount) {
|
||||
x.amountStr = null; // Will have loading state in view
|
||||
// Default to showing amount in crypto because we have that now
|
||||
x.amountStr = txFormatService.formatAmountStr(x.wallet.coin, x.data.amount);
|
||||
configService.whenAvailable(function(config) {
|
||||
if (config.wallet.settings.priceDisplay === "fiat") {
|
||||
txFormatService.formatAlternativeStr(x.wallet.coin, x.data.amount, function(formattedString) {
|
||||
x.amountStr = formattedString;
|
||||
// Will I need an apply() after this?
|
||||
});
|
||||
} else {
|
||||
x.amountStr = txFormatService.formatAmountStr(x.wallet.coin, x.data.amount);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue