Commit f2f01947 authored by Florent Berthelot's avatar Florent Berthelot

fix add dot in ip in option panel

parent c9948e11
......@@ -33,7 +33,7 @@ class PlayerOptions extends Component {
onChange = e => {
var settings = this.state.settings;
var value = e.target.type === 'checkbox' ? e.target.checked :
(Number(e.target.value) ? Number(e.target.value) : e.target.value);
(Number(e.target.value) && !e.target.value.includes('.')) ? Number(e.target.value) : e.target.value);
if (value === 'true') {
value = true;
} else if (value === 'false') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment