Skip to content

Commit

Permalink
Fix back button on registration page
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarb committed Nov 13, 2024
1 parent 3b63bf4 commit 20c34f6
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 20c34f6

Please sign in to comment.