Skip to content

Commit

Permalink
Merge pull request #1879 from anth-volk/fix/1877-update-cps
Browse files Browse the repository at this point in the history
Update CPS article link
  • Loading branch information
MaxGhenis authored Jun 19, 2024
2 parents c309105 + 4a30554 commit 07e8e29
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/pages/policy/output/Display.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,22 +270,19 @@ export function LowLevelDisplay(props) {
});

let bottomText = "";
let bottomLink = "";
let bottomLink = null;

if (metadata.countryId === "us") {
bottomText = `PolicyEngine US v${selectedVersion} estimates reform impacts using microsimulation. `;
bottomLink =
"/us/research/enhancing-the-current-population-survey-for-policy-analysis";

if (region === "enhanced_us") {
bottomText = bottomText.concat(
"These calculations utilize enhanced CPS data, a beta feature. ",
);
bottomLink = "/us/research/enhanced-cps-beta";
}
} else if (metadata.countryId === "uk") {
bottomText = `PolicyEngine UK v${selectedVersion} estimates reform impacts using microsimulation. `;
bottomLink =
"/uk/research/how-machine-learning-tools-make-policyengine-more-accurate";
}

const embed = new URLSearchParams(window.location.search).get("embed");
Expand All @@ -299,9 +296,11 @@ export function LowLevelDisplay(props) {
}}
>
{bottomText}
<a href={bottomLink} target="_blank" rel="noreferrer">
Learn more
</a>
{bottomLink && (
<a href={bottomLink} target="_blank" rel="noreferrer">
Learn more
</a>
)}
</p>
);

Expand Down

0 comments on commit 07e8e29

Please sign in to comment.