Fix keybind being flaky

This commit is contained in:
Ajay Ramachandran 2021-08-23 19:51:58 -04:00
parent c3489e54a6
commit 43a9ba0f9e

View file

@ -54,7 +54,7 @@ class SkipNotice {
}
setShowKeybindHint(value: boolean): void {
this.skipNoticeRef.current.setState({
this.skipNoticeRef?.current?.setState({
showKeybindHint: value
});
}
@ -69,7 +69,7 @@ class SkipNotice {
}
toggleSkip(): void {
this.skipNoticeRef.current.prepAction(SkipNoticeAction.Unskip);
this.skipNoticeRef?.current?.prepAction(SkipNoticeAction.Unskip);
}
}