fix: pass onboardingfalse (#27806)
This commit is contained in:
1 parent
6f6c27b47d
commit
892d53917d
4 files changed
+12
-4
No files matched your search
@@ -9,10 +9,11 @@ import { useOnboardingStore } from "../store/onboarding-store";
|
||||
type UseCreateTeamOptions = {
|
||||
redirectBasePath?: string;
|
||||
skipRedirectAfterInvite?: boolean;
|
||||
isOnboarding?: boolean;
|
||||
};
|
||||
|
||||
export function useCreateTeam(options: UseCreateTeamOptions = {}) {
|
||||
const { redirectBasePath = "/onboarding/teams", skipRedirectAfterInvite = false } = options;
|
||||
const { redirectBasePath = "/onboarding/teams", skipRedirectAfterInvite = false, isOnboarding = true } = options;
|
||||
const router = useRouter();
|
||||
const [isSubmitting, setIsSubmitting] = useState(false);
|
||||
const flags = useFlagMap();
|
||||
@@ -42,7 +43,7 @@ export function useCreateTeam(options: UseCreateTeamOptions = {}) {
|
||||
slug: teamDetails.slug,
|
||||
bio: teamDetails.bio,
|
||||
logo: teamBrand.logo,
|
||||
isOnboarding: true,
|
||||
isOnboarding,
|
||||
});
|
||||
|
||||
// If there's a checkout URL, redirect to Stripe payment
|
||||
|
||||
Reference in new issue
Block a user