fix typescript weirdness while migrating from material v4

This commit is contained in:
Aria Moradi
2021-09-09 18:37:23 +04:30
parent 0869bb888f
commit 3154247300
4 changed files with 4 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ export default function AnimeGrid(props: IProps) {
mangas, message, hasNextPage, lastPageNum, setLastPageNum,
} = props;
let mapped;
const lastManga = useRef<HTMLInputElement>();
const lastManga = useRef<HTMLInputElement>(null);
const scrollHandler = () => {
if (lastManga.current) {