Skip to content

Commit

Permalink
fix pending validator icon
Browse files Browse the repository at this point in the history
  • Loading branch information
chalabi2 committed Feb 5, 2025
1 parent d08d3d1 commit df697f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/admins/modals/validatorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,13 @@ export function ValidatorDetailsModal({
<div className="flex flex-col justify-start items-start gap-4">
<span className="text-sm text-gray-500 dark:text-gray-400">VALIDATOR</span>
<div className="flex flex-row justify-start items-center gap-4">
{validator?.logo_url !== '' ? (
{validator?.logo_url && (
<img className="h-16 w-16 rounded-full" src={validator.logo_url} alt="" />
) : (
)}
{!validator?.logo_url && (
<ProfileAvatar walletAddress={validator?.operator_address} size={64} />
)}

<span className="text-2xl font-bold text-black dark:text-white">
{validator?.description.moniker}
</span>
Expand Down

0 comments on commit df697f3

Please sign in to comment.