aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/render/SkipNotice.tsx4
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);
}
}