count coins being spent properly

This commit is contained in:
Florian Dold 2018-02-05 13:26:06 +01:00
parent 4e30e1e0e9
commit d088c7503c
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 3 additions and 2 deletions

View File

@ -1849,7 +1849,7 @@ export class Wallet {
return balance; return balance;
} }
for (const c of t.payReq.coins) { for (const c of t.payReq.coins) {
addTo(balance, "pendingIncoming", Amounts.parseOrThrow(c.contribution), c.exchange_url); addTo(balance, "pendingPayment", Amounts.parseOrThrow(c.contribution), c.exchange_url);
} }
return balance; return balance;
} }

View File

@ -282,7 +282,8 @@ class WalletBalanceView extends React.Component<any, any> {
if (Amounts.isNonZero(entry.pendingPayment)) { if (Amounts.isNonZero(entry.pendingPayment)) {
payment = ( payment = (
<i18n.Translate wrap="span"> <i18n.Translate wrap="span">
<span style={{color: "darkblue"}}> <span style={{color: "red"}}>
{"-"}
{renderAmount(entry.pendingPayment)} {renderAmount(entry.pendingPayment)}
</span> </span>
{" "} {" "}