Skip to content

Commit

Permalink
Rename "newMarketingScanPage" to "newScanPage".
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton committed Nov 15, 2019
1 parent c701e11 commit 4125c35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scan-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const scanResult = async(req, selfScan=false) => {
}
}

const newMarketingScanPage = ((Math.random() * (10 - 1) + 1) >= 5);
const newScanPage = ((Math.random() * (10 - 1) + 1) >= 5);

return {
title,
Expand All @@ -99,7 +99,7 @@ const scanResult = async(req, selfScan=false) => {
fullReport,
userDash,
scannedEmailId,
newMarketingScanPage,
newScanPage,
};
};

Expand Down
4 changes: 2 additions & 2 deletions views/scan.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h2 class="headline scan-results-headline">{{{ fluentNestedBold "scan-results-known-breaches" breachCount=foundBreaches.length }}}</h2>

<!--temp marketing "Alert me about new breaches" link-->
{{#if newMarketingScanPage}}
{{#if newScanPage}}
<button class="open-oauth blue-link temp-marketing-alert-me-link" {{> analytics/fxa id="fx-monitor-alert-me-blue-link" }} data-event-category="Alert me about new breaches - Blue link">
{{ getString "alert-about-new-breaches" }}
</button>
Expand All @@ -43,7 +43,7 @@
</div>
</main>
<section>
{{#if newMarketingScanPage}}
{{#if newScanPage}}
<!--temp marketing Sign Up callout-->
<div class="row txt-cntr jst-cntr flx-col temp-marketing-callout">
<h2 class="temp-marketing-hl mw-400">{{ getString "sign-up-headline-1" }}</h2>
Expand Down

0 comments on commit 4125c35

Please sign in to comment.