You are quite right about the issue. This is a syntax error.
I believe you can figure it out, but here is a hint, if you really are stuck:
In JS, if
statements do not use arrow (=>
) syntax. You seem to have muddled up an if
statement, and an arrow function.
Hope this helps