commit e435f5b431ced3790d477ca44542cc06aa80a068
parent 27e42111e77b6f1ead1d0e341a3cfe9e4b68ecd3
Author: Florian Dold <florian.dold@gmail.com>
Date: Sat, 7 Dec 2019 20:47:20 +0100
do not throw exception when receiving zero-length refund list
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git 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 => {