summaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-31 00:34:31 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-31 00:34:31 +0530
commit119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4 (patch)
tree5c00e984ca11d0a22f0c8b34ceaa9f92a942ed1d /src/wallet.ts
parentb51932cc85287a04dca13cbb3e4d12c5b98e9c47 (diff)
downloadwallet-core-119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4.tar.gz
wallet-core-119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4.tar.bz2
wallet-core-119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4.zip
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.ts2
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,