diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-29 22:58:47 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-29 22:58:47 +0100 |
commit | 97f6e68ce3a515938228b9a4d3e41b5f4b25a015 (patch) | |
tree | 371331acc56b7c56abec502126c2a40cdb23a95f /src/webex/pages/confirm-contract.tsx | |
parent | 9fe6dc596573f38b13f0b15c946b8bc16013fdd9 (diff) | |
download | wallet-core-97f6e68ce3a515938228b9a4d3e41b5f4b25a015.tar.xz |
change protocol to string amount network format
Diffstat (limited to 'src/webex/pages/confirm-contract.tsx')
-rw-r--r-- | src/webex/pages/confirm-contract.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webex/pages/confirm-contract.tsx b/src/webex/pages/confirm-contract.tsx index 21f05d5d6..78e90ee0e 100644 --- a/src/webex/pages/confirm-contract.tsx +++ b/src/webex/pages/confirm-contract.tsx @@ -42,6 +42,8 @@ import * as ReactDOM from "react-dom"; import URI = require("urijs"); import { WalletApiError } from "../wxApi"; +import * as Amounts from "../../amounts"; + interface DetailState { collapsed: boolean; @@ -294,7 +296,7 @@ class ContractPrompt extends React.Component<ContractPromptProps, ContractPrompt } else { merchantName = <strong>(pub: {c.merchant_pub})</strong>; } - const amount = <strong>{renderAmount(c.amount)}</strong>; + const amount = <strong>{renderAmount(Amounts.parseOrThrow(c.amount))}</strong>; console.log("payStatus", this.state.payStatus); let products = null; |