Skip to content

Commit fc74672

Browse files
authored
Merge pull request #3434 from evhan55/bug/multiple-alerts-locale-switch
Resolves #3336: Prevent multiple peripheral alerts after language switch
2 parents 06bf389 + 0de59fa commit fc74672

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/vm-listener-hoc.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const vmListenerHOC = function (WrappedComponent) {
5555
}
5656
}
5757
componentWillUnmount () {
58+
this.props.vm.removeListener('PERIPHERAL_DISCONNECT_ERROR', this.props.onShowAlert);
5859
if (this.props.attachKeyboardEvents) {
5960
document.removeEventListener('keydown', this.handleKeyDown);
6061
document.removeEventListener('keyup', this.handleKeyUp);

0 commit comments

Comments
 (0)