diff --git a/app/views/NewServerView.js b/app/views/NewServerView.js index 684badf85fcd6223e26d5f3473257a6c1f640fd9..28562495cb6f3410bebf55814b23b1e32f107871 100644 --- a/app/views/NewServerView.js +++ b/app/views/NewServerView.js @@ -48,8 +48,10 @@ export default class NewServerView extends LoggedView { } submit = () => { - Keyboard.dismiss(); - this.props.addServer(this.completeUrl(this.state.text)); + if (this.props.validInstance) { + Keyboard.dismiss(); + this.props.addServer(this.completeUrl(this.state.text)); + } } completeUrl = (url) => {