We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0eacd7 commit 37be75eCopy full SHA for 37be75e
frontend/src/components/shared/NavBarBell.vue
@@ -71,8 +71,13 @@ export default {
71
methods: {
72
async linkTo(type, link) {
73
await this.toggle();
74
- if ((type === 'match' || type === 'message' || type === 'message_like') && this.$route.path !== '/matches') {
75
- await this.$router.push('/matches');
+ console.log(type);
+ 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;
81
}
82
if (this.$route.path !== `/${link}`) {
83
await this.$router.push(`/${link}`);
0 commit comments