mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
groups: trim name on create
This commit is contained in:
parent
94151b4a8f
commit
16868c58c9
@ -103,7 +103,7 @@ export class NewScreen extends Component<NewScreenProps, NewScreenState> {
|
||||
},
|
||||
};
|
||||
|
||||
const { groupName } = this.state;
|
||||
const groupName = this.state.groupName.trim();
|
||||
this.setState(
|
||||
{
|
||||
invites: { ships: [], groups: [] },
|
||||
@ -115,7 +115,7 @@ export class NewScreen extends Component<NewScreenProps, NewScreenState> {
|
||||
.then(() => {
|
||||
this.setState({ awaiting: false });
|
||||
props.history.push(
|
||||
`/~groups/ship/~${window.ship}/${state.groupName}`
|
||||
`/~groups/ship/~${window.ship}/${groupName}`
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user