mirror of
https://github.com/mue/mue.git
synced 2026-07-14 04:24:01 +02:00
These bugs fix warnings/errors I saw in the console log.
* Fixed broken reference to toast language * Fixed null reference for a hidden credits section. * Fixed case when "notes" is not defined in local storage. * Corrected scope of "this" on Notes.jsx
This commit is contained in:
@@ -8,11 +8,11 @@ export default class Notes extends React.PureComponent {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
this.state = {
|
||||
notes: localStorage.getItem('notes')
|
||||
notes: localStorage.getItem('notes') || ""
|
||||
};
|
||||
}
|
||||
|
||||
setNotes(e) {
|
||||
setNotes = (e) => {
|
||||
localStorage.setItem('notes', e.target.value);
|
||||
this.setState({ notes: e.target.value });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user