mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
various fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user