From c5b25d1cbd459ed90af3e28c9f8d0899a3a28848 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Nov 2020 01:20:50 +0100 Subject: update error codes --- packages/taler-wallet-core/src/operations/refund.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/operations/refund.ts') diff --git a/packages/taler-wallet-core/src/operations/refund.ts b/packages/taler-wallet-core/src/operations/refund.ts index ff08fc93d..49d03ea15 100644 --- a/packages/taler-wallet-core/src/operations/refund.ts +++ b/packages/taler-wallet-core/src/operations/refund.ts @@ -264,7 +264,7 @@ async function storeFailedRefund( if (p.abortStatus === AbortStatus.AbortRefund) { // Refund failed because the merchant didn't even try to deposit // the coin yet, so we try to refresh. - if (r.exchange_code === TalerErrorCode.REFUND_DEPOSIT_NOT_FOUND) { + if (r.exchange_code === TalerErrorCode.EXCHANGE_REFUND_DEPOSIT_NOT_FOUND) { const coin = await tx.get(Stores.coins, r.coin_pub); if (!coin) { logger.warn("coin not found, can't apply refund"); -- cgit v1.2.3