From f9616dbaba101aaba899ff6b63303757a15d81f0 Mon Sep 17 00:00:00 2001 From: Sebastian Seedorf Date: Fri, 19 Aug 2022 16:47:02 +0200 Subject: [PATCH] Fix typescript --- components/home/Recipe/Recipe.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/home/Recipe/Recipe.tsx b/components/home/Recipe/Recipe.tsx index a834e52..a4f4357 100644 --- a/components/home/Recipe/Recipe.tsx +++ b/components/home/Recipe/Recipe.tsx @@ -8,7 +8,7 @@ interface Props { } export const RecipeSpan: FC = ({ recipe }) => { - const toEntityIcon = ([key, amount]: [string, number]) => ( + const toEntityIcon = ([key, amount]: [string, number | undefined]) => ( ) const joinByPlus = (elems: JSX.Element[]) =>