mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Change variable name as mentioned by t3chguy
This commit is contained in:
parent
a30110b5d3
commit
8935e9706e
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user