diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-15 19:04:14 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-15 19:04:14 +0100 |
commit | 857c0ab4cd2253a0e1d53e3372a1ff1565cb4150 (patch) | |
tree | 1284cef3d992ce767baee0a4788214b7f474a3ba /src/operations/pending.ts | |
parent | 7cc3b10824683c601a9051ef98e7c1478a801db8 (diff) | |
download | wallet-core-857c0ab4cd2253a0e1d53e3372a1ff1565cb4150.tar.xz |
introduce refund groups, react correctly to 410 Gone for /refund
Diffstat (limited to 'src/operations/pending.ts')
-rw-r--r-- | src/operations/pending.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operations/pending.ts b/src/operations/pending.ts index 27892df06..f0b29792d 100644 --- a/src/operations/pending.ts +++ b/src/operations/pending.ts @@ -365,9 +365,9 @@ async function gatherPurchasePending( }); } } - const numRefundsPending = Object.keys(pr.refundsPending).length; + const numRefundsPending = Object.keys(pr.refundState.refundsPending).length; if (numRefundsPending > 0) { - const numRefundsDone = Object.keys(pr.refundsDone).length; + const numRefundsDone = Object.keys(pr.refundState.refundsDone).length; resp.nextRetryDelay = updateRetryDelay( resp.nextRetryDelay, now, |