You've already forked matrix-react-sdk
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:
@@ -545,11 +545,11 @@ module.exports = React.createClass({
|
||||
);
|
||||
},
|
||||
|
||||
onLanguageChange: function(l) {
|
||||
if(this.state.language !== l) {
|
||||
UserSettingsStore.setLocalSetting('language', l);
|
||||
onLanguageChange: function(newLang) {
|
||||
if(this.state.language !== newLang) {
|
||||
UserSettingsStore.setLocalSetting('language', newLang);
|
||||
this.setState({
|
||||
language: l,
|
||||
language: newLang,
|
||||
});
|
||||
PlatformPeg.get().reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user