polish(driver-pwa): error states, typed catch, drop dead avatar, terminal poll

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-06-18 19:59:38 +10:00
co-authored by claude-flow
parent 0fba967cd8
commit 15d7f34689
6 changed files with 30 additions and 13 deletions
+3 -2
View File
@@ -28,8 +28,9 @@ export function LoginPage() {
}
setChannel(r.channel);
setStep("code");
} catch (err: any) {
toast.error(err?.response?.status === 404 ? "Номер не найден. Обратитесь в парк." : "Не удалось отправить код");
} catch (err: unknown) {
const status = (err as { response?: { status?: number } })?.response?.status;
toast.error(status === 404 ? "Номер не найден. Обратитесь в парк." : "Не удалось отправить код");
} finally {
setBusy(false);
}