From 175a10bd256687f0627e13c5439c0c3a85b8b0fe Mon Sep 17 00:00:00 2001 From: Zalko <88582103+Zalk0@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:34:26 +0100 Subject: [PATCH] fix: building again --- src/app/items/page.tsx | 2 +- tsconfig.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/items/page.tsx b/src/app/items/page.tsx index 82e2b7c..32a783b 100644 --- a/src/app/items/page.tsx +++ b/src/app/items/page.tsx @@ -48,7 +48,7 @@ const Category = ({ category }: { category: CategoryType }) => { ); }; -export const itemsAvailable = (categories: Array) => +const itemsAvailable = (categories: Array) => categories.reduce((acc, curr) => { return acc + curr.items.filter((item) => item.available).length; }, 0); diff --git a/tsconfig.json b/tsconfig.json index 4bdb2c9..47a1a99 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,10 +30,7 @@ "@/*": [ "./src/*" ] - }, - "types": [ - "@types/testing-library__jest-dom" - ] + } }, "include": [ "next-env.d.ts",