aboutsummaryrefslogtreecommitdiff
path: root/src/wallet-impl
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-07 20:47:20 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-07 20:47:20 +0100
commite435f5b431ced3790d477ca44542cc06aa80a068 (patch)
treea738ae8320b0eb4618d5c652e173674431c4e852 /src/wallet-impl
parent27e42111e77b6f1ead1d0e341a3cfe9e4b68ecd3 (diff)
do not throw exception when receiving zero-length refund list
Diffstat (limited to 'src/wallet-impl')
-rw-r--r--src/wallet-impl/pay.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/wallet-impl/pay.ts b/src/wallet-impl/pay.ts
index c39feeec3..7f9e90327 100644
--- a/src/wallet-impl/pay.ts
+++ b/src/wallet-impl/pay.ts
@@ -1063,11 +1063,6 @@ async function acceptRefundResponse(
): Promise<void> {
const refundPermissions = refundResponse.refund_permissions;
- if (!refundPermissions.length) {
- console.warn("got empty refund list");
- throw Error("empty refund");
- }
-
let numNewRefunds = 0;
await runWithWriteTransaction(ws.db, [Stores.purchases], async tx => {