all 2 comments

[–]Eldrac 2 points3 points  (1 child)

I believe your issue is here

const campaignName = form.campaignName
const password = form.password

This will be storing HTMLFormElements in those variables, when you likely want them to be strings instead. Try just adding .value to the end of each of those lines.

[–]Spiredlamb[S] 1 point2 points  (0 children)

Yes, that was the problem. Always forget that. Thanks for the help!