fix tests

This commit is contained in:
Romulus21
2024-02-24 23:15:14 +01:00
parent a818daeb38
commit 6dd147c3e2
4 changed files with 28 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ const ToDoShow = () => {
</> : <>
<button className="absolute right-5" onClick={handleEditTodoMode}><EditSVG className="w-5"/></button>
<h1 className="text-lg font-bold">{toDo?.name}</h1>
<p>Terminé le {toDo?.checked ? (new Date(toDo.checked)).toSmallFrDate() : ''}</p>
{toDo?.checked && <p>Terminé le {(new Date(toDo.checked)).toSmallFrDate()}</p>}
<p>{toDo?.description}</p>
</>}