diff options
author | Ajay Ramachandran <[email protected]> | 2021-08-23 19:51:58 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-08-23 19:51:58 -0400 |
commit | 43a9ba0f9e62705c1a42de17a98687828f8ecd77 (patch) | |
tree | ef02aedb25cf2f36bb5a04d59d3cd5e244926d3f | |
parent | c3489e54a6bb057bcb8d1a98bbf1ad8902a037d3 (diff) | |
download | SponsorBlock-43a9ba0f9e62705c1a42de17a98687828f8ecd77.tar.gz SponsorBlock-43a9ba0f9e62705c1a42de17a98687828f8ecd77.zip |
Fix keybind being flaky
-rw-r--r-- | src/render/SkipNotice.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/SkipNotice.tsx b/src/render/SkipNotice.tsx index bcba9d14..24f98369 100644 --- a/src/render/SkipNotice.tsx +++ b/src/render/SkipNotice.tsx @@ -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); } } |