Skip to content

Commit

Permalink
[ fix ] 타입지정
Browse files Browse the repository at this point in the history
  • Loading branch information
Happhee committed Jul 20, 2022
1 parent 3282f11 commit 494b030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/viewProduct.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default function viewProduct({
useEffect(() => {
if (data) {
const filterData = data.filter(
(_, idx) => (currentPage - 1) * 40 <= idx && idx < currentPage * 40,
(_: any, idx: number) =>
(currentPage - 1) * 40 <= idx && idx < currentPage * 40,
);
setToyList(filterData);
window.scrollTo(0, 0);
Expand Down

0 comments on commit 494b030

Please sign in to comment.