diff --git a/02_lesson_starter/src/features/posts/AddPostForm.js b/02_lesson_starter/src/features/posts/AddPostForm.js index 02b5258..97121e5 100644 --- a/02_lesson_starter/src/features/posts/AddPostForm.js +++ b/02_lesson_starter/src/features/posts/AddPostForm.js @@ -25,6 +25,8 @@ const AddPostForm = () => { } }; + const canSave = Boolean(title) && Boolean(content) && Boolean(userId); + const usersOptions = users.map((user) => (