Skip to content

Commit

Permalink
Filter out hardware wallet item on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
simoarpe committed Nov 24, 2023
1 parent 8ac1860 commit f9c62a2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import * as React from 'react'
import { useHistory } from 'react-router'
import { loadTimeData } from '../../../../common/loadTimeData'

// Options
import { CreateAccountOptions } from '../../../options/nav-options'
Expand All @@ -24,9 +25,13 @@ export const AccountsMenu = () => {
// routing
const history = useHistory()

const isAndroid = loadTimeData.getBoolean('isAndroid') || false
return (
<StyledWrapper yPosition={42}>
{CreateAccountOptions.map((option) => (
{CreateAccountOptions.filter(option => (
// Filter out hardware wallet item on Android.
!isAndroid || option.name !== 'braveWalletConnectHardwareWallet'
)).map((option) => (
<PopupButton
key={option.name}
onClick={() => history.push(option.route)}
Expand Down

0 comments on commit f9c62a2

Please sign in to comment.