From 4b50151c0f1dcb1ba88483115473c0c68a7c7b71 Mon Sep 17 00:00:00 2001 From: Vasanth Gopal Date: Sun, 14 Jul 2024 18:37:39 +0530 Subject: [PATCH] Fix: Corrected the view recipe link with the correct source-url from the recipe object --- projects/recipe-book-app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/recipe-book-app/index.js b/projects/recipe-book-app/index.js index d35b3b8..bc7830b 100644 --- a/projects/recipe-book-app/index.js +++ b/projects/recipe-book-app/index.js @@ -21,7 +21,7 @@ function displayRecipes(recipes) { `; recipeLinkEl = document.createElement("a"); - recipeLinkEl.href = recipe.sourceUrl; + recipeLinkEl.href = recipe.spoonacularSourceUrl; recipeLinkEl.innerText = "View Recipe"; recipeItemEl.appendChild(recipeImageEl);