Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default {
created() {
EventEmitter.$on(TOKEN_EXPIRED_EVENT, () => {
this.logout();
this.$router.push({ name: 'auth.signIn' });
this.$router.push({ name: 'auth.signIn' }).catch(() => {});
});
},

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
async onSignOut() {
await this.signOut();

this.$router.push({ name: 'auth.signIn' });
this.$router.push({ name: 'auth.signIn' }).catch(() => {});
},

toggleMobileMenu() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/TweetPreviewList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {

methods: {
onTweetClick(tweet) {
this.$router.push({ name: 'tweet-page', params: { id: tweet.id } });
this.$router.push({ name: 'tweet-page', params: { id: tweet.id } }).catch(() => {});
},

infiniteHandler($state) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/view/tweet/TweetContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default {

this.showSuccessMessage('Tweet deleted!');

this.$router.push({ name: 'feed' });
this.$router.push({ name: 'feed' }).catch(() => {});
} catch {
this.showErrorMessage('Unable to delete tweet!');
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/SignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {
.then(() => {
this.showSuccessMessage('Welcome!');

this.$router.push({ path: '/' });
this.$router.push({ path: '/' }).catch(() => {});
})
.catch(error => this.showErrorMessage(error.message));
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/SignUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default {
.then(() => {
this.showSuccessMessage('Welcome!');

this.$router.push({ path: '/' });
this.$router.push({ path: '/' }).catch(() => {});
})
.catch(error => this.showErrorMessage(error.message));
},
Expand Down