diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-31 00:34:31 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-31 00:34:31 +0530 |
commit | 119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4 (patch) | |
tree | 5c00e984ca11d0a22f0c8b34ceaa9f92a942ed1d /src/webex | |
parent | b51932cc85287a04dca13cbb3e4d12c5b98e9c47 (diff) |
respond with contract terms as JSON (instead of string) in the wallet APIv0.7.1-dev.16
Diffstat (limited to 'src/webex')
-rw-r--r-- | src/webex/pages/pay.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/webex/pages/pay.tsx b/src/webex/pages/pay.tsx index d255ab6e5..ce44c0040 100644 --- a/src/webex/pages/pay.tsx +++ b/src/webex/pages/pay.tsx @@ -74,9 +74,7 @@ function TalerPayDialog({ talerPayUri }: { talerPayUri: string }): JSX.Element { let contractTerms: ContractTerms; try { - contractTerms = codecForContractTerms().decode( - JSON.parse(payStatus.contractTerms), - ); + contractTerms = codecForContractTerms().decode(payStatus.contractTerms); } catch (e) { // This should never happen, as the wallet is supposed to check the contract terms // before storing them. |