Skip to content

Commit

Permalink
change spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrianbet committed Dec 20, 2023
1 parent 57e312c commit b5199c1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/views/CT/ViralLoad/ViralLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const ViralLoad = () => {
toggle('undetectable_untransmittable');
}}
>
{`UNDETECTABLE=UNTRAMITTABLE (U=U)`}
{`UNDETECTABLE=UNTRANSMITTABLE (U=U)`}
</NavLink>
</NavItem>
</Nav>
Expand Down
2 changes: 1 addition & 1 deletion src/views/CT/ViralLoad/ViralLoadU_U.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ViralLoadU_U = () => {

return (
<>
<SectionHeader title={`UNDETECTABLE=UNTRAMITTABLE`} />
<SectionHeader title={`UNDETECTABLE=UNTRANSMITTABLE`} />
<Row>
<Col>
<DataCardCT
Expand Down
18 changes: 14 additions & 4 deletions src/views/Home/HomeVLCascade.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ const HomeVLCascade = () => {
// const currentOnArt = useSelector(
// currentOnArtOverviewSelectors.getCurrentOnArt
// );

const currentDate = moment();

// Check if the current date is before the 20th of the month
if (currentDate.date() < 20) {
// If true, subtract 2 months
currentDate.subtract(2, 'months');
} else {
// If false, subtract 1 month
currentDate.subtract(1, 'months');
}
// Format the date
const reporting_month = currentDate.format('MMM YYYY');

const currentOnArt = useSelector(currentOnArtSelectors.getCurrentOnArt);
const currentOnArtText =
'CURRENT ON ART as at ' +
moment().subtract(2, 'month').add(20, 'days').format('MMM YYYY');
const currentOnArtText = 'CURRENT ON ART as at ' + reporting_month;
const eligibleForVl = useSelector(
currentOnArtOverviewSelectors.getEligibleForVl
);
Expand Down

0 comments on commit b5199c1

Please sign in to comment.