From 9f92f7324a6818222f01d6f43c9367d15dab1752 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 24 Jul 2026 17:56:42 +0000 Subject: [PATCH] Clear Card 1's email field when switching away from the login prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Andere E-Mail-Adresse verwenden" only hid the inline login prompt before, leaving the already-registered address still sitting in the field — the shopper had to manually select/delete it before typing a new one. Now clears email + loginPassword + the email field's error alongside dismissing the prompt. Co-Authored-By: Claude Sonnet 5 --- app/checkout/components/CheckoutContent.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/checkout/components/CheckoutContent.tsx b/app/checkout/components/CheckoutContent.tsx index ddccfd1..5a8b610 100644 --- a/app/checkout/components/CheckoutContent.tsx +++ b/app/checkout/components/CheckoutContent.tsx @@ -803,6 +803,15 @@ export function CheckoutContent({ onClick={() => { setShowLogin(false); setLoginError(null); + // Clears Card 1's own email field too, not just the + // login prompt — leaving the already-registered + // address sitting there meant the shopper had to + // manually select/delete it before typing a new one. + // Password cleared alongside it since it was only + // ever meaningful for the email that's now gone. + setEmail(""); + setLoginPassword(""); + setFieldError("email", ""); }} className="text-label text-text-muted underline hover:text-text-primary transition-colors" >