File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
ui/components/multichain-accounts/multichain-account-list Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments