From 1f43d07e16bfccdedf910343848eb7fed9bb6a2d Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 2 Oct 2021 16:05:23 -0400 Subject: [PATCH] Remove possible error in notice --- src/components/NoticeComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index fc514ec5..c317c0c1 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -274,8 +274,8 @@ class NoticeComponent extends React.Component { if (countdownTime == 3) { //start fade out animation const notice = document.getElementById("sponsorSkipNotice" + this.idSuffix); - notice.style.removeProperty("animation"); - notice.classList.add("sponsorSkipNoticeFadeOut"); + notice?.style.removeProperty("animation"); + notice?.classList.add("sponsorSkipNoticeFadeOut"); } this.setState({