[Wallet]: Dont Show Partner Consent Modal During Reset (#36326)

Fixes a bug where the Meld Partner Consent modal was being displayed if you Reset your wallet while on the Buy screen.
This commit is contained in:
Douglas Daniel
2026-05-11 14:18:34 -05:00
committed by GitHub
parent 83a2be3b97
commit a5bb81e1f4
@@ -179,10 +179,16 @@ export const Container = () => {
if (
!acceptedPartnerConsentTerms
&& walletLocation.includes(WalletRoutes.FundWalletPageStart)
&& !walletNotYetCreated
) {
setShowPartnerConsentModal(true)
}
}, [acceptedPartnerConsentTerms, walletLocation, history])
}, [
acceptedPartnerConsentTerms,
walletLocation,
history,
walletNotYetCreated,
])
// render
if (!hasInitialized) {