Closed rishabh417 closed 2 months ago
else {setIsTodoEditable((prev) => !prev)};
Should be replace with setIsTodoEditable((prev) => !prev);
setIsTodoEditable((prev) => !prev);
Since it is always going to change the status of whether the text is editable or not whenever clicked on Toggle(checkbox).
Required chages in setIsTodoEditable
else {setIsTodoEditable((prev) => !prev)};
Should be replace with
setIsTodoEditable((prev) => !prev);
Since it is always going to change the status of whether the text is editable or not whenever clicked on Toggle(checkbox).