From 177f1d1d08db140436862b70170accce1aba32da Mon Sep 17 00:00:00 2001 From: Ansel-Hong Date: Sat, 15 Oct 2022 18:21:55 -0400 Subject: [PATCH] unbookmark --- src/components/store/recipe-context.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/store/recipe-context.jsx b/src/components/store/recipe-context.jsx index 22af914..23eb8e2 100644 --- a/src/components/store/recipe-context.jsx +++ b/src/components/store/recipe-context.jsx @@ -47,17 +47,17 @@ export function RecipeListProvider(props) { }); } - function unbookmarkCurRecipe() { + function unbookmarkCurRecipe(i) { console.log( "bookmarkCurRecipe", "https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" + - loadedRecipe[curNum].id + + loadedRecipe[i].id + ".json" ); fetch( "https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" + - loadedRecipe[curNum].id + + loadedRecipe[i].id + ".json", { method: "PATCH",