From 0794c7e6d5f2b8cfc4906d56e102ab291ec5d023 Mon Sep 17 00:00:00 2001 From: Daniel Kjellid <42611331+danielkjellid@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:13:25 +0200 Subject: [PATCH] Use recipe default num portions (#320) --- frontend/apps/recipe/components/Recipe/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/apps/recipe/components/Recipe/index.tsx b/frontend/apps/recipe/components/Recipe/index.tsx index 457f7d7b..b96d2b68 100644 --- a/frontend/apps/recipe/components/Recipe/index.tsx +++ b/frontend/apps/recipe/components/Recipe/index.tsx @@ -21,7 +21,7 @@ function Recipe({ recipe }: RecipeProps) { const theme = useMantineTheme() const { classes } = useCommonStyles() - const defaultNumPortions = 4 + const { defaultNumPortions } = recipe const [portions, setPortions] = useState(recipe.defaultNumPortions) const formatDuration = (duration: string) =>