From 86a5d4c0256fd624143db294834a8538aa618084 Mon Sep 17 00:00:00 2001 From: John Gedeon Date: Thu, 11 Aug 2022 12:49:39 -0700 Subject: [PATCH] fix: resolve type error from useRef return See for where the solution came from https://github.com/DefinitelyTyped/DefinitelyTyped/issues/35572#issuecomment-498242139 --- src/components/NewsCarousel/NewsCarousel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NewsCarousel/NewsCarousel.tsx b/src/components/NewsCarousel/NewsCarousel.tsx index 6c944305b..364d39863 100644 --- a/src/components/NewsCarousel/NewsCarousel.tsx +++ b/src/components/NewsCarousel/NewsCarousel.tsx @@ -20,7 +20,7 @@ const CustomEllipse = ({ onClick }: any) => { } const NewsCarousel = ({ articles }: { articles: ArticleListItemRecord[] }) => { - const sliderRef = useRef() + const sliderRef = useRef(null) const settings = { dots: true,