From 7b8de81567e20c75bac24816d17026561e6078ff Mon Sep 17 00:00:00 2001 From: Fillerino Date: Fri, 7 Jul 2017 15:37:24 +0200 Subject: [PATCH] More fixing... --- ui/js/page/settings/view.jsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ui/js/page/settings/view.jsx b/ui/js/page/settings/view.jsx index d735851dc..d9b45bbca 100644 --- a/ui/js/page/settings/view.jsx +++ b/ui/js/page/settings/view.jsx @@ -86,6 +86,7 @@ class SettingsPage extends React.PureComponent { } onLanguageChange(e) { + console.log(e); this.props.changeLanguage(e.target.value); } @@ -165,9 +166,7 @@ class SettingsPage extends React.PureComponent { type="radio" name="language" label={__("English")} - onChange={() => { - this.onLanguageChange.bind(this); - }} + onChange={this.onLanguageChange.bind(this)} defaultChecked={this.state.language == "en"} /> @@ -178,9 +177,7 @@ class SettingsPage extends React.PureComponent { name="language" key={dLang} label={window.app.i18n.resLang(dLang)} - onChange={() => { - this.onLanguageChange.bind(this); - }} + onChange={this.onLanguageChange.bind(this)} defaultChecked={this.state.language == dLang} />