Skip to content

Commit

Permalink
fix(notifications): don't error on same page
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Dec 19, 2024
1 parent e675ea9 commit 4ba73df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/users/nye.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function updateUser (user) {
};
const data = {
title: 'Happy New Year!',
destination: 'inventory/equipment',
destination: '/inventory/equipment',
};

if (typeof user.items.gear.owned.head_special_nye2023 !== 'undefined') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export default {
},
methods: {
action () {
if (!this.notification || !this.notification.data) {
if (!this.notification || !this.notification.data
|| this.notification.data.destination === this.$route.path) {
return;
}
if (this.notification.data.destination.indexOf('backgrounds') !== -1) {
Expand Down

0 comments on commit 4ba73df

Please sign in to comment.