From 731fafda0eaeaa07f69d13d3d6f861c2cb5a4866 Mon Sep 17 00:00:00 2001 From: Brandon Li Date: Sun, 30 Aug 2026 14:13:18 -0500 Subject: [PATCH] Scope the reset button to failed accounts `button.reset_btn` matched the reset control on any account row; qualifying it with `.status-failed` keeps the repeat block from resetting healthy accounts. --- lib/automations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/automations.ts b/lib/automations.ts index 8324ca0..46f1dd9 100644 --- a/lib/automations.ts +++ b/lib/automations.ts @@ -156,7 +156,7 @@ export const FIRMS: Firm[] = [ { action: 'repeat', timesFrom: 'count', steps: [ // one purchase — the steps you already have - { action: 'click', selector: 'button.reset_btn', label: 'Reset Account' }, + { action: 'click', selector: '.status-failed button.reset_btn', label: 'Reset Account' }, { action: 'waitFor', selector: "div.captcha-solver[data-state='ready']", timeoutSeconds: 30, label: 'Wait for the solver' }, { action: 'click', selector: 'div.captcha-solver[data-state="ready"]'}, { action: 'waitFor', selector: "div.captcha-solver[data-state='solved']", timeoutSeconds: 120, label: 'Wait for the challenge' },