History

fix local anonymous modal visibility

Stop gating the no-organization modal on organizations loading state so fresh local installs can always access anonymous organization creation when no session context exists.

Rhys Sullivan committed 8 months ago

Commit db219481 parent cc72cee1 file · +1 −5Browse files

Unified · Split

executor/apps/web/src/components/no/organization-modal.tsx+1−5
@@ -24,8 +24,6 @@ const localSetupCommands = [ · 23 unmodified lines
24export function NoOrganizationModal({ enabled }: { enabled: boolean }) {24export function NoOrganizationModal({ enabled }: { enabled: boolean }) {
25 const {25 const {
26 loading,26 loading,
27 organizations,
28 organizationsLoading,
29 context,27 context,
30 isSignedInToWorkos,28 isSignedInToWorkos,
31 createAnonymousOrganization,29 createAnonymousOrganization,
@@ -36,10 +34,8 @@ export function NoOrganizationModal({ enabled }: { enabled: boolean }) { · 4 unmodified lines
36 34
37 const shouldShow = enabled35 const shouldShow = enabled
38 && !loading36 && !loading
39 && !organizationsLoading
40 && !context37 && !context
41 && !isSignedInToWorkos38 && !isSignedInToWorkos;
42 && organizations.length === 0;
43 39
44 const handleCreateAnonymousOrganization = async () => {40 const handleCreateAnonymousOrganization = async () => {
45 setError(null);41 setError(null);