Skip to content

Commit

Permalink
fix: optimize user management
Browse files Browse the repository at this point in the history
  • Loading branch information
kris liu authored and kris-liu-smile committed Dec 1, 2022
1 parent 97353e3 commit e36762a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/storefront/src/components/filter/B3Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ const B3Filter:<T, Y> (props: B3FilterProps<T, Y>) => ReactElement = (props) =>
size="small"
variant="contained"
sx={{
maxWidth: 150,
height: '42px',
p: '0 20px',
...customButtomConfig?.customButtomStyle || {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const Usermanagement = () => {
/>
<B3Dialog
isOpen={deleteOpen}
title="Delete user? "
title="Delete user"
leftSizeBtn="cancel"
rightSizeBtn="delete"
handleLeftClick={handleCancelClick}
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/src/utils/loginInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const getCurrentAgentInfo = async (customerId: number, role: number) => {
let salesRepCompanyId = ''
let salesRepCompanyName = ''

if (role === 3) {
if (+role === 3) {
try {
const data: any = await getAgentInfo(customerId)
if (data?.superAdminMasquerading) {
Expand Down

0 comments on commit e36762a

Please sign in to comment.