[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user