941 viewsMern Amazona

Hello Basir, When trying to update user profile on profile screen, I am getting a cast error about ObjectId. Here is the error:CastError: Cast to ObjectId failed for value “profile” (type string) at path “_id” for model “User”. I dont understand why I am getting this error when my code seems to be the same as yours from the github related to the course. Here is my code if you need to browse the Github: https://github.com/shawn-stover/creatively-cozy-creations

Bassir Answered question October 30, 2022