JS Rock, paper, scissors

I am working through the rock paper scissor exercise and I can’t figure out the syntax unexpected token error I keep getting. Pasted below:

const getUserChoice = userInput => { userInput = userInput.toLowerCase(); if (userInput === 'rock' || userInput === 'paper' ||userInput === 'scissors') { return userInput; } else { console.log('Error, please choose rock, paper or scissors.'); }

What am I doing wrong?

You are missing one closing curly bracket. }