Skip to content

Commit

Permalink
fix: don't render icon
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Oct 19, 2023
1 parent 0d1c47b commit 9505a58
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/walletconnect/ProposalForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ const ProposalForm = ({ proposal, onApprove, onReject }: ProposalFormProps): Rea
WalletConnect
</Typography>

<div className={css.icon}>
<SafeAppIconCard
src={proposer.metadata.icons[0] || ''}
width={32}
height={32}
alt={`${proposer.metadata.name} logo`}
/>
</div>
{proposer.metadata.icons[0] && (
<div className={css.icon}>
<SafeAppIconCard
src={proposer.metadata.icons[0]}
width={32}
height={32}
alt={`${proposer.metadata.name} logo`}
/>
</div>
)}

<Typography mb={1}>{proposer.metadata.name} wants to connect</Typography>

Expand Down

0 comments on commit 9505a58

Please sign in to comment.