Skip to content

Commit

Permalink
removed image if company image icon is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
aatbip committed Feb 6, 2024
1 parent f3e7e65 commit 7e1f923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/manage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default async function ManagePage({ searchParams }: { searchParams: { tok
// const clientId = 'a583a0d0-de70-4d14-8bb1-0aacf7424e2c';
// const companyId = '52eb75a9-2790-4e37-aa7a-c13f7bc3aa91';
const clientId = '2b37da9b-73b9-4c28-b7ac-144cf39cb13b';
const companyId = 'db906431-e721-47e8-8649-bd11b9ed2982';
const companyId = 'b5b3883c-f3e7-40e2-98e8-4f4b195ba98e';
const client = await getClient(clientId, token);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/cellRenderers/CompanyCellRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const CompanyCellRenderer = ({ value }: { value: { iconImageUrl: string;
const { iconImageUrl, name } = value;
return (
<Stack direction="row" alignItems="center" gap={3} marginTop="15px">
<Box component="img" src={iconImageUrl} alt="avatar" sx={{ width: '20px', height: '20px' }} />
{iconImageUrl && <Box component="img" src={iconImageUrl} alt="avatar" sx={{ width: '20px', height: '20px' }} />}
<Typography variant="sm" lineHeight={'16px'}>
{name}
</Typography>
Expand Down

0 comments on commit 7e1f923

Please sign in to comment.