Skip to content

Conversation

@vbro
Copy link
Contributor

@vbro vbro commented Nov 11, 2025

This PR is stack on top of #103118 and is a follow up to https://github.com/getsentry/getsentry/pull/18799

@vbro vbro requested a review from a team November 11, 2025 00:31
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 11, 2025
{customer.dataRetention || '90d'}
{customer.orgRetention?.standard
? `${customer.orgRetention?.standard}d`
: '90d'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Conditional Logic Misinterprets Zero

The conditional checks if customer.orgRetention?.standard is truthy, which fails when standard is 0 (a valid retention value). This causes 0 to incorrectly fall back to '90d' instead of displaying '0d'. Use customer.orgRetention?.standard != null or defined() to properly handle zero values.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants