Skip to content

Commit

Permalink
fix: resolve type error from useRef return
Browse files Browse the repository at this point in the history
See for where the solution came from DefinitelyTyped/DefinitelyTyped#35572 (comment)
  • Loading branch information
gidjin authored and abbyoung committed Aug 11, 2022
1 parent 077e442 commit e403e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NewsCarousel/NewsCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CustomEllipse = ({ onClick }: any) => {
}

const NewsCarousel = ({ articles }: { articles: ArticleListItemRecord[] }) => {
const sliderRef = useRef<Slider>()
const sliderRef = useRef<Slider>(null)

const settings = {
dots: true,
Expand Down

0 comments on commit e403e9c

Please sign in to comment.