From 4f30584f53e7d5fd06b79ba23e7dc30752e7230a Mon Sep 17 00:00:00 2001 From: shree-77 Date: Tue, 31 Oct 2023 08:36:57 +0530 Subject: [PATCH] fixed onion recipe bug --- Food-Recipe/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Food-Recipe/index.js b/Food-Recipe/index.js index 8d5b88d..c61e049 100644 --- a/Food-Recipe/index.js +++ b/Food-Recipe/index.js @@ -108,7 +108,7 @@ async function fetchResponses(recipeName) { const rating = Math.ceil(data.results[0].user_ratings.score * 5); const yields = data.results[0].yields; - const cookTime = data.results[0]?.total_time_tier?.display_tier; + const cookTime = data.results[0]?.total_time_tier?.display_tier ?? "null"; const instructionsTag = data.results[0]?.instructions; const nutrition = () => {