1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Change variable name as mentioned by t3chguy

This commit is contained in:
Marcel
2017-05-27 21:21:23 +02:00
committed by GitHub
parent a30110b5d3
commit 8935e9706e

View File

@@ -545,11 +545,11 @@ module.exports = React.createClass({
); );
}, },
onLanguageChange: function(l) { onLanguageChange: function(newLang) {
if(this.state.language !== l) { if(this.state.language !== newLang) {
UserSettingsStore.setLocalSetting('language', l); UserSettingsStore.setLocalSetting('language', newLang);
this.setState({ this.setState({
language: l, language: newLang,
}); });
PlatformPeg.get().reload(); PlatformPeg.get().reload();
} }