The Resend Button That Didn't Resend

Our signup flow texts a six-digit code to confirm a mobile number. Under the code box sat a link: "Use a different number or resend".
It did not resend. It navigated back to the previous step with the number still in the field. If you then pressed the submit button again, a new code was sent — but nothing told you that, and the natural reading of "resend" is that clicking it resends.
So the experience for somebody whose first code never arrived was: click resend, watch the screen change, wait, nothing. Click it again. Nothing again.
Why this particular bug punches above its weight
Every other bug in a signup flow is encountered by people who are moving forward. This one is only ever encountered by people who are already stuck. By definition, the only visitor who clicks "resend" is one whose code did not arrive — someone with patchy signal, a carrier filtering verification traffic, or a device that silently binned the message.
They are already closer to abandoning than any other user in the funnel. The recovery path is the last thing standing between them and leaving, and it did nothing.
It is also almost invisible in analytics. There is no error, no failed request, no exception. The step-completion rate for phone verification dips slightly, which looks like ordinary funnel attrition.
How it happens
Nearly always the same way. The "resend" affordance is written while building the forward path, where sending the code is a side effect of submitting the form. Reusing the form looks like reuse of logic:
<button type="button" onClick={() => setStep("phone")}>
Use a different number or resend
</button>
It satisfies "let them get back to a state where a resend is possible" — which is not the same as resending, but is easy to conflate when you already know how the flow works. The author tests it by clicking back, submitting, and seeing a code arrive. The flow works. The button does not.
The fix
Extract the send so both entry points call the same code, rather than one of them calling the other's UI.
const sendCode = useCallback(async (e164: string) => {
setBusy(true);
const res = await postJson("/api/signup/phone/send", { applicationId, phone: e164 });
setBusy(false);
if (res.ok) setCooldown(RESEND_SECONDS);
if (!res.ok) console.warn("[signup] phone/send failed:", res.error);
return res;
}, [applicationId]);
The forward path and the resend now share it:
const submitPhone = async (e) => {
e.preventDefault();
const e164 = normalizePhone(phone);
if (!e164) { setError(messageFor("invalid_phone")); return; }
advance("phone", await sendCode(e164));
};
const resendCode = async () => {
const e164 = normalizePhone(phone);
if (!e164) { setStep("phone"); return; } // nothing to resend to
const res = await sendCode(e164);
if (res.ok) { setError(""); setStatusNote(`We sent another code to ${e164}.`); }
else advance("sms", res);
};
Three things to get right:
Stay on the step. A successful resend should not move the person anywhere. They are waiting for a code; the screen they are on is the screen where they will type it.
Confirm it visibly. Without acknowledgement the button looks broken even when it works, because
the only evidence is a text message that takes a few seconds. "We sent another code to +1…" in a
live region costs one line and removes all doubt.
Separate the two actions. "Resend" and "use a different number" are different intents and deserve different controls:
Didn't get it? <button onClick={resendCode} disabled={busy}>Send another code</button>
{" "}or <button onClick={() => setStep("phone")}>use a different number</button>.
Keep the cooldown on both paths. Ours was already there and still applies — a resend button with no rate limit is an SMS bill with a button attached.
Say what to do when it genuinely will not arrive
Sometimes no number of resends will help: carriers do filter verification traffic, and some virtual numbers never receive it. A dead end at that point loses a customer who was actively trying to pay you. One sentence fixes it:
Codes usually arrive within a few seconds. If nothing arrives after two tries, your carrier may be filtering it — tell us and we'll finish the setup with you.
That converts a hard stop into a lead. It is also honest: carrier filtering is real, it is not the visitor's fault, and your support team can complete the signup manually.
Worth auditing in your own flows
Every recovery path shares this risk, because recovery paths are built last and exercised least. Go and press, as a user with no knowledge of the code:
- resend email verification
- resend SMS or one-time code
- "didn't receive a reset link?"
- "change the number/email I entered"
- retry after a payment failure
- resume an abandoned application from a link
For each, confirm that it performs the action it names, confirms it visibly, respects a cooldown, and has an escape hatch when it legitimately cannot succeed. These paths are where people go when something has already gone wrong — which makes them the last place you can afford a second disappointment.


