File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
examples/vue3-ts-todo-list/src/components Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default defineComponent({
4040 const task = ref (' ' )
4141
4242 /**
43- * Wrapper function adding a new todo for additional client side error handling.
43+ * Wrapper function adding a new todo for additional client- side error handling.
4444 */
4545 async function insertTask() {
4646 // Guard for short task descriptions which will fail db policy.
@@ -54,17 +54,17 @@ export default defineComponent({
5454 return
5555 }
5656 try {
57- // Try and wrie the data to to the database
57+ // Try and write the data to the database.
5858 const todo = await addTodo ({ user_id: userSession .value .user .id , task: task .value })
5959
60- // If there was no response, dont do anything.
60+ // If there was no response, don't do anything.
6161 if (! todo ) {
6262 return
6363 }
64- // Otherwise push the response into allTodos.
64+ // Otherwise, push the response into allTodos.
6565 allTodos .value .push (todo )
6666
67- // Reset inptut feild
67+ // Reset input field.
6868 task .value = ' '
6969 } catch (err ) {
7070 console .error (' Unknown error when adding todo' , err )
You can’t perform that action at this time.
0 commit comments