[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-webex] 02/02: count coins being spent properl
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-webex] 02/02: count coins being spent properly |
Date: |
Mon, 05 Feb 2018 13:26:17 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-webex.
commit d088c7503cd0a356d260ac63a896f1ce5025f2ef
Author: Florian Dold <address@hidden>
AuthorDate: Mon Feb 5 13:26:06 2018 +0100
count coins being spent properly
---
src/wallet.ts | 2 +-
src/webex/pages/popup.tsx | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/wallet.ts b/src/wallet.ts
index 95e7246f..7c8aa772 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -1849,7 +1849,7 @@ export class Wallet {
return balance;
}
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;
}
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx
index 134ee6de..6bba1014 100644
--- a/src/webex/pages/popup.tsx
+++ b/src/webex/pages/popup.tsx
@@ -282,7 +282,8 @@ class WalletBalanceView extends React.Component<any, any> {
if (Amounts.isNonZero(entry.pendingPayment)) {
payment = (
<i18n.Translate wrap="span">
- <span style={{color: "darkblue"}}>
+ <span style={{color: "red"}}>
+ {"-"}
{renderAmount(entry.pendingPayment)}
</span>
{" "}
--
To stop receiving notification emails like this one, please contact
address@hidden