1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Add isEqual and changing haveToSaveNotif method

This commit is contained in:
Paul Rosset
2017-12-14 12:26:05 +00:00
parent cb59458c79
commit 795fe8ae1d
3 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ class HotkeyTab extends React.Component {
this.setState({
config
})
if (JSON.stringify(this.oldHotkey) === JSON.stringify(config.hotkey)) {
if (_.isEqual(this.oldHotkey, config.hotkey)) {
this.props.haveToSave()
} else {
this.props.haveToSave({