Skip to content

Commit

Permalink
Do not display View Safe button in SearchDisplay if found safe is cur…
Browse files Browse the repository at this point in the history
…rent safe
  • Loading branch information
mudrila committed Jan 18, 2024
1 parent f488fcd commit 1887c2a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/components/ui/menus/DAOSearch/SearchDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ export function SearchDisplay({
<DAONameDisplay address={address} />
</Flex>
</Flex>
<Button
alignSelf="center"
data-testid="search-viewDAO"
disabled={isCurrentSafe}
isDisabled={isCurrentSafe}
cursor={isCurrentSafe ? 'disabled' : 'pointer'}
>
{t('labelViewDAO')}
</Button>
{!isCurrentSafe && (
<Button
alignSelf="center"
data-testid="search-viewDAO"
>
{t('labelViewDAO')}
</Button>
)}
</Flex>
);
}
Expand Down

0 comments on commit 1887c2a

Please sign in to comment.