From c0ba3d95858614a1aa51797ecb0188afb50962cf Mon Sep 17 00:00:00 2001 From: Diana Fulga Date: Wed, 31 Jul 2024 10:44:43 +0300 Subject: [PATCH] Add else case --- src/background/services/paymentSession.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/background/services/paymentSession.ts b/src/background/services/paymentSession.ts index abc9310b..c70ee0dc 100644 --- a/src/background/services/paymentSession.ts +++ b/src/background/services/paymentSession.ts @@ -44,7 +44,7 @@ export class PaymentSession { private events: EventsService, private tabState: TabState, private url: string - ) { } + ) {} async adjustAmount(rate: AmountValue): Promise { this.probingId = Date.now() @@ -372,6 +372,8 @@ export class PaymentSession { } else if (isInvalidReceiverError(e)) { if (Date.now() >= this.incomingPaymentExpiresAt) { await this.setIncomingPaymentUrl(true) + } else { + throw e } } else { throw e