1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: show data for last 30 days where we say we do (#8850)

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.
This commit is contained in:
Thomas Heartman 2024-11-25 14:09:03 +01:00 committed by GitHub
parent dc7c46786a
commit 99f2b70da3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,10 +240,10 @@ export const ProjectLifecycleSummary = () => {
<span>{flagWord('archived')} in archived</span> <span>{flagWord('archived')} in archived</span>
</p> </p>
<Stats> <Stats>
<dt>This month</dt> <dt>Last 30 days</dt>
<dd data-loading-project-lifecycle-summary> <dd data-loading-project-lifecycle-summary>
{data?.lifecycleSummary.archived.currentFlags ?? 0}{' '} {data?.lifecycleSummary.archived.last30Days ?? 0} flags
flags archived archived
</dd> </dd>
</Stats> </Stats>
</LifecycleBox> </LifecycleBox>