Skip to content

Commit

Permalink
fix: remove marketing enable in portfolio link
Browse files Browse the repository at this point in the history
  • Loading branch information
AugmentedMode committed Oct 21, 2024
1 parent c0acc37 commit 6f11556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6665,7 +6665,7 @@ export default class MetamaskController extends EventEmitter {

async backToSafetyPhishingWarning() {
const portfolioBaseURL = process.env.PORTFOLIO_URL;
const portfolioURL = `${portfolioBaseURL}/?metamaskEntry=phishing_page_portfolio_button&marketingEnabled=true`;
const portfolioURL = `${portfolioBaseURL}/?metamaskEntry=phishing_page_portfolio_button`;

this.metaMetricsController.trackEvent({
category: MetaMetricsEventCategory.Navigation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ describe('Phishing Detection', function () {
});

const currentUrl = await driver.getCurrentUrl();
const expectedPortfolioUrl = `https://portfolio.metamask.io/?metamaskEntry=phishing_page_portfolio_button&marketingEnabled=true`;
const expectedPortfolioUrl = `https://portfolio.metamask.io/?metamaskEntry=phishing_page_portfolio_button`;

assert.equal(currentUrl, expectedPortfolioUrl);
},
Expand Down

0 comments on commit 6f11556

Please sign in to comment.