From 325a2d84f9545fa7eb804b86c4f1f37002eb3001 Mon Sep 17 00:00:00 2001 From: MrDizzystick Date: Fri, 30 Jul 2021 19:59:20 -0700 Subject: [PATCH] Fix typos --- examples/vue3-ts-todo-list/src/components/TodoList.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/vue3-ts-todo-list/src/components/TodoList.vue b/examples/vue3-ts-todo-list/src/components/TodoList.vue index e421f52060d..c758ecda69a 100644 --- a/examples/vue3-ts-todo-list/src/components/TodoList.vue +++ b/examples/vue3-ts-todo-list/src/components/TodoList.vue @@ -40,7 +40,7 @@ export default defineComponent({ const task = ref('') /** - * Wrapper function adding a new todo for additional client side error handling. + * Wrapper function adding a new todo for additional client-side error handling. */ async function insertTask() { // Guard for short task descriptions which will fail db policy. @@ -54,17 +54,17 @@ export default defineComponent({ return } try { - // Try and wrie the data to to the database + // Try and write the data to the database. const todo = await addTodo({ user_id: userSession.value.user.id, task: task.value }) - // If there was no response, dont do anything. + // If there was no response, don't do anything. if (!todo) { return } - // Otherwise push the response into allTodos. + // Otherwise, push the response into allTodos. allTodos.value.push(todo) - // Reset inptut feild + // Reset input field. task.value = '' } catch (err) { console.error('Unknown error when adding todo', err)