Skip to content

Commit

Permalink
Improved: indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskar345 committed Oct 10, 2023
1 parent f5f4877 commit 070e45c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export default defineComponent({
async unauthorized() {
// Mark the user as unauthorised, this will help in not making the logout api call in actions
this.store.dispatch("user/logout", { isUserUnauthorised: true });
const redirectUrl = window.location.origin + '/login'
window.location.href = `${process.env.VUE_APP_LOGIN_URL}?redirectUrl=${redirectUrl}`
const redirectUrl = window.location.origin + '/login';
window.location.href = `${process.env.VUE_APP_LOGIN_URL}?redirectUrl=${redirectUrl}`;
}
},
created() {
Expand Down
4 changes: 2 additions & 2 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ export default defineComponent({
});
await alert.present();
},
logout () {
this.store.dispatch('user/logout', { isUserUnauthorised: false }).then((redirectionUrl) => {
logout() {
this.store.dispatch('user/logout', { isUserUnauthorised: false }).then((redirectionUrl) => {
this.store.dispatch('shipment/clearShipments');
this.store.dispatch('return/clearReturns');
this.store.dispatch("party/resetReceiversDetails");
Expand Down

0 comments on commit 070e45c

Please sign in to comment.