Handle default port properly, closes #18

This commit is contained in:
Ken-Håvard Lieng 2018-05-18 04:14:26 +02:00
parent b09da1fc3b
commit 4ac0dd7c4b
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -105,7 +105,7 @@ export default withFormik({
mapPropsToValues: ({ defaults }) => ({ mapPropsToValues: ({ defaults }) => ({
name: defaults.name, name: defaults.name,
host: defaults.host, host: defaults.host,
port: defaults.port || defaults.ssl ? '6697' : '6667', port: defaults.port || (defaults.ssl ? '6697' : '6667'),
nick: '', nick: '',
channels: defaults.channels.join(','), channels: defaults.channels.join(','),
username: '', username: '',