Unexpacted Token in SendGrid Code

Good morning Naama,

I hope you don’t mine, but I fixed (and saved) the code on your page. I kept a copy of the original code just in case you prefer that code instead. :wink:

A few things:

  • You had two onReady() functions. That’s a no-no.

  • const doesn’t work on variables that change, so I changed to let

  • I changed another line of code to change ` to
    I tested it on a cloned version of your site and I actually got an email from it. I did get an error message regarding an error on the dataset saving some fields. You’ll have to investigate that.

I hope this helps.

Yisrael