Skip to content

Commit

Permalink
fixed: hide arrow when only one address
Browse files Browse the repository at this point in the history
  • Loading branch information
zzggo committed Dec 5, 2024
1 parent a31de08 commit 02c5a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/views/Dashboard/Components/WalletFunction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const WalletFunction = (props) => {
</Typography>
</Box>
<Box sx={{ flex: '1' }}></Box>
{props.address === props.current['address'] && (
{props.address === props.current['address'] && props.walletList.length > 1 && (
<IconEnd
size={12}
style={{
Expand Down
1 change: 1 addition & 0 deletions src/ui/views/Dashboard/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ const Header = ({ loading = false }) => {
mainAddress={mainAddress}
setExpandAccount={setExpandAccount}
expandAccount={expandAccount}
walletList={walletList}
/>
</List>
);
Expand Down

0 comments on commit 02c5a99

Please sign in to comment.