From 834f01313c5eb9d19b179e0635efbc0ca663db27 Mon Sep 17 00:00:00 2001 From: David Ernst Date: Mon, 5 Jan 2026 21:46:08 -0800 Subject: [PATCH] MalwareCheckPage: Store if they hit 'Back' btn --- src/malware-check/MalwareCheckPage.tsx | 52 +++++++++++++++----------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/src/malware-check/MalwareCheckPage.tsx b/src/malware-check/MalwareCheckPage.tsx index 387d6351..3c7e1e8d 100644 --- a/src/malware-check/MalwareCheckPage.tsx +++ b/src/malware-check/MalwareCheckPage.tsx @@ -153,26 +153,6 @@ function PageContent() { } } - const handleSubmitIssue = async () => { - try { - const response = await api('/malware-check/confirm', { - auth_token, - confirmed: false, - election_id, - issue_description: issueDescription, - otp, - }) - - if (response.ok) { - setConfirmed(true) - setShowIssueForm(false) - } - } catch (error) { - // Handle error - console.error('Failed to submit issue', error) - } - } - if (error === 'Already used') return (
@@ -307,13 +287,41 @@ function PageContent() {