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