Skip to content

Commit

Permalink
fixed bugs with focus on title changing
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroHoncharuk committed Dec 23, 2024
1 parent 3a45d19 commit d345046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@ console.log(updatingTodos) }, [updatingTodos]);
setTodosData(prevTodos =>
prevTodos.map(t => (t.id === id ? { ...t, title: tempTitle.trim() } : t))
);
setUpdatingTodoId(null);

} catch {
setError('Update');
} finally {
setIsServerRequest(false)
setUpdatingTodoId(null);
}
};

Expand Down

0 comments on commit d345046

Please sign in to comment.