Skip to content

Commit 730ad7b

Browse files
authored
Merge pull request supabase#2653 from MrDizzystick/patch-1
Fix typos in Vue 3 todo list example
2 parents b86f670 + 325a2d8 commit 730ad7b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/vue3-ts-todo-list/src/components/TodoList.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)