diff --git a/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx b/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx index 6cbfebf0b..d983bc951 100644 --- a/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx +++ b/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx @@ -19,10 +19,9 @@ export default function NewRecipe(props) { const title = titleInput.value const text = textInput.value const image = imageInput.value - const author = session.sessionUserId try { - await logic.createRecipe(author, title, text, image) + await logic.createRecipe(title, text, image) props.onPublish() @@ -42,7 +41,7 @@ export default function NewRecipe(props) {
} diff --git a/staff/belen-ivars/project/app/src/pages/Home.jsx b/staff/belen-ivars/project/app/src/pages/Home.jsx index 6b25f4fab..be6a78100 100644 --- a/staff/belen-ivars/project/app/src/pages/Home.jsx +++ b/staff/belen-ivars/project/app/src/pages/Home.jsx @@ -99,20 +99,20 @@ function Home(props) {