Learn Modern JavaScript Methods By Building Football Team Cards - Step 42

Tell us what’s happening:

Your code so far

switch (e.target.value) {
case “nickname”: setPlayerCards(players.filter((player) => {
return player.nickname !== null;
}))

}

what is the problem? it raises this error:

Your filter() callback should implicitly return the result of checking if player.nickname is not null .

Challenge Information:

Learn Modern JavaScript Methods By Building Football Team Cards - Step 42

Hi @davarifarshad3

Curly braces and a return statement are only required when there are multiple expressions to the right of the arrow.

The semi-colon goes after the rounded brackets.

Happy coding