Skip to content

Commit

Permalink
Add else case
Browse files Browse the repository at this point in the history
  • Loading branch information
dianafulga committed Jul 31, 2024
1 parent 94d06ab commit c0ba3d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/background/services/paymentSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class PaymentSession {
private events: EventsService,
private tabState: TabState,
private url: string
) { }
) {}

async adjustAmount(rate: AmountValue): Promise<void> {
this.probingId = Date.now()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c0ba3d9

Please sign in to comment.