diff --git a/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx b/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx index 95ea59876c0662..b4e2901a363910 100644 --- a/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx +++ b/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx @@ -61,6 +61,7 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr const hasSetStatsPeriod = location.query.statsPeriod || location.query.start || location.query.end; const defaultStatsPeriod = useGroupDefaultStatsPeriod(group, project); + const shouldShowSinceFirstSeenOption = issueTypeConfig.defaultTimePeriod.sinceFirstSeen; const period = hasSetStatsPeriod ? getPeriod({ start: location.query.start as string, @@ -132,7 +133,8 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr return { ...props.arbitraryOptions, // Always display arbitrary issue open period - ...(defaultStatsPeriod?.statsPeriod + ...(defaultStatsPeriod?.statsPeriod && + shouldShowSinceFirstSeenOption ? { [defaultStatsPeriod.statsPeriod]: t( '%s (since first seen)', @@ -162,7 +164,8 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr triggerProps={{ children: period === defaultStatsPeriod && - !defaultStatsPeriod.isMaxRetention + !defaultStatsPeriod.isMaxRetention && + shouldShowSinceFirstSeenOption ? t('Since First Seen') : undefined, style: {