Skip to content

Commit

Permalink
fix: empty additional chains (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
terran6 authored May 3, 2023
1 parent adf2802 commit 3658f09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/layout/OtherChainsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const OtherChainsButton = ({ list, handleSetChain }: Props) => {
placement="bottom"
content={<SimpleChainList onClick={onClick} list={list} />}
>
<button className={styles.button}>+ {list.length}</button>
{list.length ? (
<button className={styles.button}>+ {list.length}</button>
) : undefined}
</Popover>
)
}
Expand Down

0 comments on commit 3658f09

Please sign in to comment.