This repository was archived by the owner on Dec 23, 2025. It is now read-only.
Commit f355e68
Jez
fix: replace alert() with toast in toggle-complete component
- Import react-hot-toast for consistent error feedback
- Replace alert() with toast.error() on line 35
- Simplify error message to match other components
- Consistent with PR ifindev#14 (delete-todo.tsx)
Provides professional, non-blocking error notifications when
toggling todo completion fails.1 parent a44687a commit f355e68
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments