Handle default port properly, closes #18
This commit is contained in:
parent
b09da1fc3b
commit
4ac0dd7c4b
File diff suppressed because one or more lines are too long
@ -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: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user