Skip to content

Commit

Permalink
Remove old context references
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosnt committed Jul 8, 2020
1 parent a843946 commit 1671218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class App extends Component {
// Update when settings change
Settings.observe(oldSettings => {
if (oldSettings.sortByContext !== Settings.sortByContext) {
this.setState(state => ({ strings: this._sortByContext(state.context.strings) }));
this.setState(state => ({ strings: this._sortByContext(state.strings) }));
return;
}

Expand Down Expand Up @@ -191,7 +191,7 @@ class App extends Component {
};

onStringChanged = (newValue, stringId) => {
const string = this.state.context.strings.find(s => s.id === stringId);
const string = this.state.strings.find(s => s.id === stringId);

if (newValue !== string.value) {
string.value = newValue;
Expand Down

0 comments on commit 1671218

Please sign in to comment.