Skip to content

Commit

Permalink
fix: clear info after login out (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 authored Nov 6, 2023
1 parent 0051cc3 commit e10ecff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/storefront/src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default function Login(props: RegisteredProps) {
salesRepCompanyId = 0,
isAgenting,
registerEnabled,
customerId,
},
dispatch,
} = useContext(GlobaledContext)
Expand Down Expand Up @@ -144,6 +145,8 @@ export default function Login(props: RegisteredProps) {
if (loginFlag === '3') {
// await bcLogoutLogin()

if (!customerId) return

if (isAgenting) {
await superAdminEndMasquerade(+salesRepCompanyId, +B3UserId)
}
Expand Down

0 comments on commit e10ecff

Please sign in to comment.