From 2f039533c470dc8420d51e00294ccde7085a4d75 Mon Sep 17 00:00:00 2001 From: omkar Date: Wed, 13 Nov 2024 11:42:24 -0500 Subject: [PATCH] Fix back button on registration page (#1251) --- apps/web/src/components/Basenames/RegistrationFlow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/Basenames/RegistrationFlow.tsx b/apps/web/src/components/Basenames/RegistrationFlow.tsx index 6954b9fd03..fccbd299c6 100644 --- a/apps/web/src/components/Basenames/RegistrationFlow.tsx +++ b/apps/web/src/components/Basenames/RegistrationFlow.tsx @@ -105,7 +105,8 @@ export function RegistrationFlow() { const onBackArrowClick = useCallback(() => { setRegistrationStep(RegistrationSteps.Search); - }, [setRegistrationStep]); + setSelectedName(''); + }, [setRegistrationStep, setSelectedName]); useEffect(() => { const claimQuery = searchParams?.get(claimQueryKey);