From 119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 31 Jul 2020 00:34:31 +0530 Subject: respond with contract terms as JSON (instead of string) in the wallet API --- src/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet.ts') 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, -- cgit v1.2.3