Skip to content

Commit

Permalink
Merge pull request #27854 from brave/pr27837_fix-wallet-show-meld-opt…
Browse files Browse the repository at this point in the history
…-in-on-android_1.77.x

fix(wallet): Show Meld Opt In on Android (uplift to 1.77.x)
  • Loading branch information
kjozwiak authored Feb 28, 2025
2 parents 2af2961 + dab6b82 commit 2ba865a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/brave_wallet_ui/page/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
isPersistableSessionRoute
} from '../utils/routes-utils'
import { LOCAL_STORAGE_KEYS } from '../common/constants/local-storage-keys'
import { loadTimeData } from '../../common/loadTimeData'

// actions
import * as WalletPageActions from './actions/wallet_page_actions'
Expand Down Expand Up @@ -112,7 +111,6 @@ export const Container = () => {
: isWalletLocked
? WalletRoutes.Unlock
: sessionRoute || WalletRoutes.PortfolioAssets
const isAndroid = loadTimeData.getBoolean('isAndroid') || false

// Methods
const handleAcceptPartnerConsent = () => {
Expand Down Expand Up @@ -154,13 +152,12 @@ export const Container = () => {

React.useEffect(() => {
if (
!isAndroid &&
!acceptedPartnerConsentTerms &&
walletLocation.includes(WalletRoutes.FundWalletPageStart)
) {
setShowPartnerConsentModal(true)
}
}, [isAndroid, acceptedPartnerConsentTerms, walletLocation, history])
}, [acceptedPartnerConsentTerms, walletLocation, history])

// render
if (!hasInitialized) {
Expand Down

0 comments on commit 2ba865a

Please sign in to comment.