tasks logic

This commit is contained in:
marshennikovaolga
2024-10-02 13:07:01 +03:00
parent 315f7bf38e
commit 0b904f4e86
6 changed files with 18 additions and 148 deletions

View File

@@ -48,9 +48,8 @@ export const useTaskActions = () => {
try {
me.root.tasks.splice(index, 1)
toast.success("Task deleted", {
position: "bottom-right",
description: `${task.title} has been deleted.`
toast.success("Task completed", {
position: "bottom-right"
})
} catch (error) {
console.error("Failed to delete task", error)