File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
clients/apps/web/src/components/Onboarding Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useAuth } from '@/hooks'
55import { usePostHog } from '@/hooks/posthog'
66import { useCreateOrganization } from '@/hooks/queries'
77import { setValidationErrors } from '@/utils/api/errors'
8+ import { CONFIG } from '@/utils/config'
89import { FormControl } from '@mui/material'
910import { schemas } from '@polar-sh/client'
1011import Button from '@polar-sh/ui/components/atoms/Button'
@@ -344,12 +345,22 @@ export const OrganizationStep = ({
344345 >
345346 Create
346347 </ Button >
347- { hasExistingOrg && (
348+ { hasExistingOrg ? (
348349 < Link href = { `/dashboard` } className = "w-full" >
349350 < Button variant = "secondary" fullWidth >
350351 Back to Dashboard
351352 </ Button >
352353 </ Link >
354+ ) : (
355+ < Link
356+ href = { `${ CONFIG . BASE_URL } /v1/auth/logout` }
357+ prefetch = { false }
358+ className = "w-full"
359+ >
360+ < Button variant = "secondary" fullWidth >
361+ Logout
362+ </ Button >
363+ </ Link >
353364 ) }
354365 </ FadeUp >
355366 </ form >
You can’t perform that action at this time.
0 commit comments