Krishna Kant Verma
Results
2
issues of
Krishna Kant Verma
```const handleSubmit = async (value: z.infer) => { if (post && action === 'Update') { const updatedPost = await updatePost({ ...value, postId: post.$id, imageId: post.imageId, imageUrl: post.imageUrl, }); if (!updatedPost)...
disabled the update button until the user not change any field value by using useEffect and useState with help of react-hook-form