Skip to content

Commit

Permalink
Merge pull request #46 from diggerhq/fix-revert-force-session-refresh
Browse files Browse the repository at this point in the history
Revert "Force refresh session at the end of onboarding"
  • Loading branch information
ZIJ authored Sep 13, 2024
2 parents 56724d6 + 4c65f14 commit e812bfa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { OrganizationCreation } from "./OrganizationCreation";
import { ProfileUpdate } from "./ProfileUpdate";
import { TermsAcceptance } from "./TermsAcceptance";

import { refreshSessionAction } from "@/data/user/session";
import type { Table } from "@/types";
import type { AuthUserMetadata } from "@/utils/zod-schemas/authUserMetadata";

Expand Down Expand Up @@ -49,7 +48,7 @@ export function UserOnboardingFlow({
console.log('currentStep is COMPLETE', currentStep);
console.log('onboardingStatus : ', onboardingStatus);
console.log('now redirecting to /dashboard');
refreshSessionAction().then(() => { router.push("/dashboard"); });
router.push("/dashboard");
}
}, [currentStep, router, onboardingStatus]);

Expand Down

0 comments on commit e812bfa

Please sign in to comment.