Skip to content

Commit

Permalink
fix: removed consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
gakshita committed Oct 15, 2024
1 parent 9893319 commit f0e1355
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web/core/store/cycle.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,10 @@ export class CycleStore implements ICycleStore {
}

getIsPointsDataAvailable = computedFn((cycleId: string) => {
console.log(this.cycleMap[cycleId]?.version);
const cycle = this.cycleMap[cycleId];
if (!cycle) return false;
if (this.cycleMap[cycleId].version === 2) return cycle.progress.some((p) => p.total_estimate_points > 0);
else if (this.cycleMap[cycleId].version === 1) {
console.log({ ...cycle.estimate_distribution?.completion_chart });
const completionChart = cycle.estimate_distribution?.completion_chart || {};
return !isEmpty(completionChart) && Object.keys(completionChart).some((p) => completionChart[p]! > 0);
} else return false;
Expand Down

0 comments on commit f0e1355

Please sign in to comment.