Skip to content

Commit

Permalink
fix(M2-105): Clear localStorage on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
youanden authored and Frodigo committed May 4, 2022
1 parent 3498289 commit aaa1162
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/theme/pages/MyAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default defineComponent({
const changeActivePage = async (title) => {
if (title === app.i18n.t('Log out')) {
localStorage.removeItem('vsf-checkout');
await Promise.all([logout(), clear()]);
await router.push(`${localePath({ name: 'home' })}`);
Expand Down

0 comments on commit aaa1162

Please sign in to comment.