Skip to content

Commit 37be75e

Browse files
committed
correct match, message, message_like notification url
1 parent c0eacd7 commit 37be75e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

frontend/src/components/shared/NavBarBell.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,13 @@ export default {
7171
methods: {
7272
async linkTo(type, link) {
7373
await this.toggle();
74-
if ((type === 'match' || type === 'message' || type === 'message_like') && this.$route.path !== '/matches') {
75-
await this.$router.push('/matches');
74+
console.log(type);
75+
console.log(this.$route.path);
76+
if (type === 'match' || type === 'message' || type === 'message_like') {
77+
if (this.$route.path !== '/matches') {
78+
await this.$router.push('/matches');
79+
}
80+
return;
7681
}
7782
if (this.$route.path !== `/${link}`) {
7883
await this.$router.push(`/${link}`);

0 commit comments

Comments
 (0)