Skip to content

Commit

Permalink
Fix back button on registration page (#1251)
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarb authored Nov 13, 2024
1 parent 3b63bf4 commit 2f03953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/components/Basenames/RegistrationFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export function RegistrationFlow() {

const onBackArrowClick = useCallback(() => {
setRegistrationStep(RegistrationSteps.Search);
}, [setRegistrationStep]);
setSelectedName('');
}, [setRegistrationStep, setSelectedName]);

useEffect(() => {
const claimQuery = searchParams?.get(claimQueryKey);
Expand Down

0 comments on commit 2f03953

Please sign in to comment.