Learn localStorage by Building a Todo App - Step 11

Tell us what’s happening:

The forum responses I read mentioned removing brackets and/or using the return statement. I’ve tried both, and every combination and always get the error:

Your arrow function callback should check if item.id === currentTask.id.

Your code so far

const dataArrIndex = taskData.findIndex((item) => {
  item.id === currentTask.id;
});

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0

Challenge Information:

Learn localStorage by Building a Todo App - Step 11

It has to be an implicit return.

If I remove the function body and semicolon from your code, it passes.