diff --git a/src/popup/popup.tsx b/src/popup/popup.tsx index 47dbd0b8f..dd87963c6 100644 --- a/src/popup/popup.tsx +++ b/src/popup/popup.tsx @@ -195,6 +195,18 @@ function ExtensionLink(props: any) { ) } + +export function bigAmount(amount: AmountJson): JSX.Element { + let v = amount.value + amount.fraction / Amounts.fractionalBase; + return ( + + {v} + {" "} + {amount.currency} + + ); +} + class WalletBalanceView extends React.Component { balance: WalletBalance; gotError = false; @@ -306,7 +318,7 @@ class WalletBalanceView extends React.Component { let entry: WalletBalanceEntry = wallet[key]; return ( - {prettyAmount(entry.available)} + {bigAmount(entry.available)} {" "} {this.formatPending(entry)}
- {prettyAmount(entry.available)} + {bigAmount(entry.available)} {" "} {this.formatPending(entry)}