Skip to content

Commit

Permalink
fix: make sure navigation on form is consistent (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger authored Dec 5, 2023
1 parent e4759ac commit d95051a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/auth/registration/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export function Register() {

const activeStep = useRef<number>(0);
activeStep.current = steps.findIndex((s) => {
console.log(params.get("pos"));
return s.pos === (params.get("pos") ?? "choice");
});

Expand All @@ -60,7 +59,6 @@ export function Register() {
}

const currentStep = activeStep.current;
console.log(currentStep);
return (
<Background>
<LandingPageAppBar />
Expand Down Expand Up @@ -106,7 +104,7 @@ export function Register() {
activeStep={currentStep}
steps={steps.length - 1}
onNext={() => {
if (values.setup === "managed") {
if (currentStep === 0 && values.setup === "managed") {
history.replace("/contact");
} else {
const step = (activeStep.current = currentStep + 1);
Expand Down
1 change: 0 additions & 1 deletion src/components/Route/RouteSelectionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ interface Params {

export function RouteSelectionButton({ routes }: Params) {
const history = useHistory();
console.log(history.location.pathname);

return (
<BottomNavigation
Expand Down

0 comments on commit d95051a

Please sign in to comment.