From 29351b07af05efc496214fcaf8312afc376be9cb Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Thu, 29 Apr 2021 15:47:20 -0500
Subject: Make all components use typescript

---
 src/views/Start.vue | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

(limited to 'src/views/Start.vue')

diff --git a/src/views/Start.vue b/src/views/Start.vue
index 567582d..f32c337 100644
--- a/src/views/Start.vue
+++ b/src/views/Start.vue
@@ -22,12 +22,11 @@ export default defineComponent({
     UIButton,
   },
   methods: {
-    handleDatabaseChange(files: File[]) {
-      parsePtDatabase(files[0]).then((result) => {
-        this.$store.commit('setLabs', result.labs);
-        this.$store.commit('setPeerTeachers', result.peerTeachers);
-        this.$router.push({ name: 'Editor' });
-      });
+    async handleDatabaseChange(files: File[]) {
+      const result = await parsePtDatabase(files[0]);
+      this.$store.commit('setLabs', result.labs);
+      this.$store.commit('setPeerTeachers', result.peerTeachers);
+      this.$router.push({ name: 'Editor' });
     },
   },
 });
-- 
cgit v1.2.3

