Skip to content

Commit

Permalink
fix: update unused
Browse files Browse the repository at this point in the history
  • Loading branch information
b3aton committed Dec 2, 2022
1 parent e1ed62e commit 770ea01
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/storefront/src/pages/address/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@ const Address = () => {
isB2BUser,
isAgenting,
salesRepCompanyId,
salesRepCompanyName,
companyInfo: {
id: companyInfoId,
companyName: companyInfoName,
},
addressConfig,
},
Expand All @@ -103,7 +101,6 @@ const Address = () => {
})

const companyId = role === 3 && isAgenting ? salesRepCompanyId : companyInfoId
const companyName = role === 3 && isAgenting ? salesRepCompanyName : companyInfoName
const hasAdminPermission = isB2BUser && (!role || (role === 3 && isAgenting))
const isBCPermission = !isB2BUser || (role === 3 && !isAgenting)

Expand Down

0 comments on commit 770ea01

Please sign in to comment.