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
2424 export function NoOrganizationModal({ enabled }: { enabled: boolean }) {
2525 const {
2626 loading,
27− organizations,
28− organizationsLoading,
2927 context,
3028 isSignedInToWorkos,
3129 createAnonymousOrganization,
@@ -36,10 +34,8 @@ export function NoOrganizationModal({ enabled }: { enabled: boolean }) { · 4 unmodified lines
3634
3735 const shouldShow = enabled
3836 && !loading
39− && !organizationsLoading
4037 && !context
41− && !isSignedInToWorkos
42− && organizations.length === 0;
38+ && !isSignedInToWorkos;
4339
4440 const handleCreateAnonymousOrganization = async () => {
4541 setError(null);