Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/WeeklySummariesReport/BioFunction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function BioFunction(props) {

const [bioStatus, setBioStatus] = useState(bioPosted);

const isMeetCriteria = totalTangibleHrs > 80 && daysInTeam > 60 && bioPosted !== 'posted';
const isMeetCriteria =
totalTangibleHrs > 80 && summary?.weeklySummariesCount >= 8 && bioPosted !== 'posted';
const style = {
color: textColors[summary?.weeklySummaryOption] || textColors.Default,
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/WeeklySummariesReport/FormattedReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function ReportDetails({
const isMeetCriteria =
canSeeBioHighlight &&
summary.totalTangibleHrs > 80 &&
summary.daysInTeam > 60 &&
summary.weeklySummariesCount >= 8 &&
summary.bioPosted !== 'posted';

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ export class WeeklySummariesReport extends Component {
const hoursLogged = (summary.totalSeconds[navItems.indexOf(activeTab)] || 0) / 3600;

const isMeetCriteria =
summary.totalTangibleHrs > 80 && summary.daysInTeam > 60 && summary.bioPosted !== 'posted';
summary.totalTangibleHrs > 80 &&
summary.weeklySummariesCount >= 8 &&
summary.bioPosted !== 'posted';

const isBio = !selectedBioStatus || isMeetCriteria;

Expand Down