Skip to content

Commit

Permalink
fix: clear session after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlLiu2023 committed May 18, 2023
1 parent b5f299c commit 6f0f0e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/storefront/src/utils/loginInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ export const clearCurrentCustomerInfo = async (dispatch: DispatchProps) => {
cartTip: 0,
checkoutTip: 0,
})
B3SStorage.set('blockPendingAccountOrderCreation', false)
B3SStorage.set('realRole', 100)
B3SStorage.set('B3CompanyInfo', {
id: '',
companyName: '',
companyStatus: '',
})
sessionStorage.removeItem('b2b-blockPendingAccountOrderCreation')

dispatch({
type: 'common',
Expand Down

0 comments on commit 6f0f0e5

Please sign in to comment.