Skip to content

Commit

Permalink
list only vaults on optimism in profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorshtak committed Mar 22, 2023
1 parent 4cac5b5 commit 46da04c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Profile/components/UserVaults/UserVaults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const UserVaults: React.FC = () => {
<>
<Wrapper>
{vaults.map((obj, index) => {
return <UserVault key={index} vaultName={obj.key} vaultAddress={obj.vaultAddress} />;
if (obj.vaultAddress)
return <UserVault key={index} vaultName={obj.key} vaultAddress={obj.vaultAddress} />;
})}
<UserLP />
</Wrapper>
Expand Down

0 comments on commit 46da04c

Please sign in to comment.