Skip to content

Commit

Permalink
fix: correct disabled stats metric displaying valid count instead of …
Browse files Browse the repository at this point in the history
…disabled
  • Loading branch information
ogzhanolguncu committed Jan 9, 2025
1 parent 71d211e commit 8978f1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export default async function APIKeyDetailPage(props: {
stats.forbidden += v.count;
}
});

const roleTee = key.workspace.roles.map((role) => {
const nested: NestedPermissions = {};
for (const permission of key.workspace.permissions) {
Expand Down Expand Up @@ -328,7 +329,7 @@ export default async function APIKeyDetailPage(props: {
<Metric label="Valid" value={formatNumber(stats.valid)} />
<Metric label="Ratelimited" value={formatNumber(stats.ratelimited)} />
<Metric label="Usage Exceeded" value={formatNumber(stats.usageExceeded)} />
<Metric label="Disabled" value={formatNumber(stats.valid)} />
<Metric label="Disabled" value={formatNumber(stats.disabled)} />
<Metric
label="Insufficient Permissions"
value={formatNumber(stats.insufficientPermissions)}
Expand Down

0 comments on commit 8978f1b

Please sign in to comment.