diff --git a/src/components/views/dialogs/CreateSubspaceDialog.tsx b/src/components/views/dialogs/CreateSubspaceDialog.tsx index b3b468d218..d7b2153008 100644 --- a/src/components/views/dialogs/CreateSubspaceDialog.tsx +++ b/src/components/views/dialogs/CreateSubspaceDialog.tsx @@ -70,7 +70,7 @@ const CreateSubspaceDialog: React.FC = ({ space, onAddExistingSpaceClick if ( spaceAliasField.current && joinRule === JoinRule.Public && - (await spaceAliasField.current.validate({ allowEmpty: true })) + !(await spaceAliasField.current.validate({ allowEmpty: true })) ) { spaceAliasField.current.focus(); spaceAliasField.current.validate({ allowEmpty: true, focused: true });