From 5881d92eb7ce143757ccca7b0e91abd7d0b9c69f Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 23 Jul 2019 15:04:28 -0400
Subject: [PATCH] use $route instead of $router.currentRoute
---
src/components/user_card/user_card.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
index a3c962fb..070af38a 100644
--- a/src/components/user_card/user_card.js
+++ b/src/components/user_card/user_card.js
@@ -104,8 +104,7 @@ export default {
},
isActiveRoute () {
const profileRoute = this.userProfileLink(this.user)
- const currentRoute = this.$router.currentRoute
- return profileRoute.name === currentRoute.name && isEqual(profileRoute.params, currentRoute.params)
+ return profileRoute.name === this.$route.name && isEqual(profileRoute.params, this.$route.params)
}
},
components: {