various fixes

This commit is contained in:
vabene1111
2025-01-30 10:29:21 +01:00
parent fcbc4cb792
commit 3880f205b6
9 changed files with 53 additions and 34 deletions

View File

@@ -6,6 +6,11 @@ import {Ingredient} from "@/openapi";
*/
export function ingredientToString(ingredient: Ingredient) {
let content = []
if(ingredient == undefined){
return ''
}
if(ingredient.amount != 0){
content.push(ingredient.amount)
}