Skip to content

Commit

Permalink
Use recipe default num portions (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkjellid authored Jun 18, 2024
1 parent 383b0ef commit 0794c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/apps/recipe/components/Recipe/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Recipe({ recipe }: RecipeProps) {
const theme = useMantineTheme()
const { classes } = useCommonStyles()

const defaultNumPortions = 4
const { defaultNumPortions } = recipe
const [portions, setPortions] = useState<number>(recipe.defaultNumPortions)

const formatDuration = (duration: string) =>
Expand Down

0 comments on commit 0794c7e

Please sign in to comment.