Next.js Discord

Discord Forum

My server action doesn't return any values and its undefined

Unanswered
Western paper wasp posted this in #help-forum
Open in Discord
Western paper waspOP
Hello there, i've been trying to do profile information update page where my user switch between 2 components:
First - default component where the input information is disabled and
Second - edit component where u can type in inputs and save the changes
So the main problem is that the information doesn't change after i save changes and my server action function is returning undefined.
This is my editTemplateComponent - https://pastebin.com/9w6YujAF
profileTemplate if needed - https://pastebin.com/3dZ7KMAk
updateInfo function using prisma - https://pastebin.com/hjrwxLQz

If anybody can help me i will be very thankful, cuz i have struggled a lot with this one!

0 Replies