diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-15 12:53:35 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-15 12:53:35 +0530 |
commit | 35c83414f9e0af11012c1a2e00672d2a7c1856ae (patch) | |
tree | be7d1ad1787706400aaac931c00778b7699a1d1b /src/operations/refund.ts | |
parent | cda75feb5bf7623439f3f5f8da0c6da0c164b3fb (diff) | |
download | wallet-core-35c83414f9e0af11012c1a2e00672d2a7c1856ae.tar.xz |
fix issues in the webextension refund UI
Diffstat (limited to 'src/operations/refund.ts')
-rw-r--r-- | src/operations/refund.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/operations/refund.ts b/src/operations/refund.ts index 1ffcd2da2..cbcb96446 100644 --- a/src/operations/refund.ts +++ b/src/operations/refund.ts @@ -252,10 +252,7 @@ async function acceptRefundResponse( let queryDone = true; if (numNewRefunds === 0) { - if ( - p.autoRefundDeadline && - p.autoRefundDeadline.t_ms > now.t_ms - ) { + if (p.autoRefundDeadline && p.autoRefundDeadline.t_ms > now.t_ms) { queryDone = false; } } else { @@ -361,7 +358,7 @@ async function startRefundQuery( export async function applyRefund( ws: InternalWalletState, talerRefundUri: string, -): Promise<{ contractTermsHash: string }> { +): Promise<{ contractTermsHash: string; proposalId: string }> { const parseResult = parseRefundUri(talerRefundUri); console.log("applying refund", parseResult); @@ -384,7 +381,10 @@ export async function applyRefund( logger.info("processing purchase for refund"); await startRefundQuery(ws, purchase.proposalId); - return { contractTermsHash: purchase.contractData.contractTermsHash }; + return { + contractTermsHash: purchase.contractData.contractTermsHash, + proposalId: purchase.proposalId, + }; } export async function processPurchaseQueryRefund( |