Skip to content

Commit

Permalink
[TM-938] revert: change workdays_count to self_reported_workdays_count (
Browse files Browse the repository at this point in the history
  • Loading branch information
pachonjcl authored May 30, 2024
1 parent a7f0bb1 commit 9da6aa6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/pages/project/[uuid]/tabs/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ const ProjectOverviewTab = ({ project }: ProjectOverviewTabProps) => {
<div className="flex w-full flex-wrap gap-6">
<If condition={isPPC}>
<Then>
<GoalProgressCard label={t("Workday (PPC)")} value={project.workday_count} className="w-[170px]" />
<GoalProgressCard
label={t("Workday (PPC)")}
value={project.self_reported_workday_count}
className="w-[170px]"
/>
</Then>
<Else>
<GoalProgressCard
Expand Down
6 changes: 5 additions & 1 deletion src/pages/site/[uuid]/tabs/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ const SiteOverviewTab = ({ site }: SiteOverviewTabProps) => {
>
<div className="flex w-full flex-wrap gap-6">
<When condition={isPPC}>
<GoalProgressCard label={t("Workday Count (PPC)")} value={site.workday_count} className="w-[170px]" />
<GoalProgressCard
label={t("Workday Count (PPC)")}
value={site.self_reported_workday_count}
className="w-[170px]"
/>
</When>
<GoalProgressCard
label={t("Hectares Restored Goal")}
Expand Down

0 comments on commit 9da6aa6

Please sign in to comment.