Viseryn / foodplanner

An app for managing recipes, planning your meals with a built-in shopping list.
https://viseryn.atlassian.net/jira/software/projects/FP/boards/1
1 stars 0 forks source link

Recipe: Uncaught Error: Invalid argument #207

Closed Viseryn closed 3 months ago

Viseryn commented 11 months ago

react-dom.development.js:12056 Uncaught Error: Invalid argument at fraction.js:381:1 at ./node_modules/fraction.js/fraction.js (fraction.js:891:2) at __webpack_require__ (bootstrap:19:1) at ./assets/pages/ShoppingList/ShoppingList.tsx (ShoppingList.tsx:42:39)

Viseryn commented 11 months ago

How to reproduce this error:

Create a recipe with ingredients. As last ingredient, just type "...". This will create an Ingredient object with "." as quantityValue.

Implement a validation for ingredients.