Open shivi28 opened 2 years ago
To resolve this issue update the toggleCompleted()
in app.js
Older code
toggleCompleted: async (e) => {
App.setLoading(true)
const taskId = e.target.name
await App.todoList.toggleCompleted(taskId)
window.location.reload()
}
Updated code:
toggleCompleted: async (e) => {
App.setLoading(true)
const taskId = e.target.name
await App.todoList.toggleCompleted(taskId,{ from: App.account })
window.location.reload()
}
In the updated code, added {from: App.account}
argument in App.todoList.toggleCompleted()
After completing the task, when I toggle the task checkbox I am getting below error.