Rock, Scissors and Paper game, undefined return at the end

Hello all, I am having my second problem with this exercise. I couldn’t find an identical reason with other posts and I needed to open a new one. So when I call playGame() I receive this;

You threw paper
Computer threw scissors
undefined

Here is my code below. I appreciate all help, thank you.

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

const getComputerChoice = () => {
  const randomNumber = Math.floor(Math.random() * 3);
  switch (randomNumber) {
    case 0:
      return 'paper';
    case 1:
      return 'rock';
    case 2:
      return 'scissors';
  }
}

const determineWinner = (userChoice, computerChoice) => {
  if (userChoice === computerChoice) {
    return 'This game is a tie!';

  if (userChoice === 'rock') {
    if (computerChoice === 'paper') {
      return 'Sorry, computer won!';
    } else {
      return 'Congragulations, you won!';
    }
  }
  if (userChoice === 'paper') {
    if (computerChoice === 'scissors') {
      return 'Sorry, computer won!';
    } else {
      return 'Congragulations, you won!';
    }
  }
  if (userChoice === 'scissors') {
    if (computerChoice === 'rock') {
      return 'Sorry, computer won!';
    } else {
      return 'Congragulations, you won!';
    }
  }
 }
};

const playGame = () => {
  const userChoice = getUserChoice('paper');
  const computerChoice = getComputerChoice();
  console.log('You threw ' + userChoice);
  console.log('Computer threw ' + computerChoice);

  console.log(determineWinner(userChoice, computerChoice));
};

playGame();

if you print something and it isn’t what you expected, you’d look at where you got it from right?

console.log(add(3, 5)) // 100 ... the add function probably isn't quite right

Thanks, indeed I looked into if section several times and couldn’t see any issue. However, after your suggestion, I understood that I needed to look more deeply. So I copied the code to Visual Studio Code from Codecademy panel. With the help of dimmed out section I saw that something is wrong; yes, a missing bracket. Anyway, thank you.

const determineWinner = (userChoice, computerChoice) => {
  if (userChoice === computerChoice) {
    return 'This game is a tie!';
  }

Missing bracket was here.