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/wallet.ts | |
parent | b51932cc85287a04dca13cbb3e4d12c5b98e9c47 (diff) | |
download | wallet-core-119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4.tar.xz |
respond with contract terms as JSON (instead of string) in the wallet APIv0.7.1-dev.16
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 09a3fcb45..758336c58 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -791,7 +791,7 @@ export class Wallet { ]).amount; const totalFees = totalRefundFees; return { - contractTerms: purchase.contractTermsRaw, + contractTerms: JSON.parse(purchase.contractTermsRaw), hasRefund: purchase.timestampLastRefundStatus !== undefined, totalRefundAmount: totalRefundAmount, totalRefundAndRefreshFees: totalFees, |