Skip to content

Commit

Permalink
fix: show data for last 30 days where we say we do (#8850)
Browse files Browse the repository at this point in the history
This change updates the stat for archived flags "this month".

Turns out we were accessing the wrong property on the data object.

Additionally, changes the label to say "last 30 days" instead of "this
month"  because that's more accurate.
  • Loading branch information
thomasheartman authored Nov 25, 2024
1 parent dc7c467 commit 99f2b70
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ export const ProjectLifecycleSummary = () => {
<span>{flagWord('archived')} in archived</span>
</p>
<Stats>
<dt>This month</dt>
<dt>Last 30 days</dt>
<dd data-loading-project-lifecycle-summary>
{data?.lifecycleSummary.archived.currentFlags ?? 0}{' '}
flags archived
{data?.lifecycleSummary.archived.last30Days ?? 0} flags
archived
</dd>
</Stats>
</LifecycleBox>
Expand Down

0 comments on commit 99f2b70

Please sign in to comment.