Skip to content
Snippets Groups Projects
Unverified Commit fc746728 authored by Evelyn Eastmond's avatar Evelyn Eastmond Committed by GitHub
Browse files

Merge pull request #3434 from evhan55/bug/multiple-alerts-locale-switch

Resolves #3336: Prevent multiple peripheral alerts after language switch
parents 06bf3896 0de59faa
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,7 @@ const vmListenerHOC = function (WrappedComponent) {
}
}
componentWillUnmount () {
this.props.vm.removeListener('PERIPHERAL_DISCONNECT_ERROR', this.props.onShowAlert);
if (this.props.attachKeyboardEvents) {
document.removeEventListener('keydown', this.handleKeyDown);
document.removeEventListener('keyup', this.handleKeyUp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment