Skip to content

Commit 40b264c

Browse files
author
Fabio Bozzo
committed
address pr feedback
1 parent b93d88b commit 40b264c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/components/multichain-accounts/multichain-account-list/multichain-account-list.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export const MultichainAccountList = ({
8787
showAccountCheckbox = false,
8888
showConnectionStatus = false,
8989
}: MultichainAccountListProps) => {
90+
const showAccountMenu = !showAccountCheckbox;
91+
9092
const dispatch = useDispatch();
9193
const history = useHistory();
9294
const trackEvent = useContext(MetaMetricsContext);
@@ -293,15 +295,15 @@ export const MultichainAccountList = ({
293295
) : undefined
294296
}
295297
endAccessory={
296-
showAccountCheckbox ? undefined : (
298+
showAccountMenu ? (
297299
<MultichainAccountMenu
298300
accountGroupId={groupId as AccountGroupId}
299301
isRemovable={isRemovable}
300302
handleAccountRenameAction={handleAccountRenameAction}
301303
isOpen={openMenuAccountId === groupId}
302304
onToggle={() => handleMenuToggle(groupId as AccountGroupId)}
303305
/>
304-
)
306+
) : undefined
305307
}
306308
/>
307309
</Box>

0 commit comments

Comments
 (0)