diff --git a/src/demo/editor/contributeModal.tsx b/src/demo/editor/contributeModal.tsx index a9fd272fc..f9f288960 100644 --- a/src/demo/editor/contributeModal.tsx +++ b/src/demo/editor/contributeModal.tsx @@ -39,7 +39,7 @@ export class ContributeForm extends React.PureComponent { onNameChange = (e: React.ChangeEvent): void => { e.preventDefault() - this.setProjectName(e.currentTarget.value) + this.setProjectName(e.currentTarget.value.replace(/\s/g, '-')) } onRandomizeName = (e: React.MouseEvent): void => { @@ -75,6 +75,7 @@ export class ContributeForm extends React.PureComponent {