diff --git a/frontend/src/components/MainPage.vue b/frontend/src/components/MainPage.vue
index c80ed9078a190bb20c3373257a3cacab339c7c7e..0b7441bf07f51616b0db34c9273515f91b465695 100644
--- a/frontend/src/components/MainPage.vue
+++ b/frontend/src/components/MainPage.vue
@@ -66,7 +66,7 @@ export default {
 
       if(response.status === 200) {
         const items = await response.json()
-        this.items = items.filter(item => item.completed === 'false')
+        this.items = items.filter(item => item.completed === false)
         this.completedItems = items.filter(item => item.completed === true)
         console.log(this.items)
         console.log(this.completedItems)
@@ -84,7 +84,7 @@ export default {
         body: JSON.stringify({
           "title": this.todo.title,
           "description": this.todo.description,
-          "userId": this.$route.params.id,
+          "userId": localStorage.getItem('userId'),
           "completed": false
         })
       });