Skip to content

Commit

Permalink
fix(background): fix more regressions from forEach -> for..of
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Jan 31, 2025
1 parent 8e69a16 commit 02b9970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background/services/monetization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class MonetizationService {
this.canTryPayment(connected, state)
) {
for (const session of sessionsArr) {
if (!sessions.get(session.id)) return;
if (!sessions.get(session.id)) continue;
const source = replacedSessions.has(session.id)
? 'request-id-reused'
: 'new-link';
Expand Down Expand Up @@ -181,7 +181,7 @@ export class MonetizationService {
const { requestId } = p;

const session = sessions.get(requestId);
if (!session) return;
if (!session) continue;

if (p.intent === 'remove') {
needsAdjustAmount = true;
Expand Down

0 comments on commit 02b9970

Please sign in to comment.