Skip to content

Commit cd47295

Browse files
feat(crons): Default checkin_margin to 1 in frontend (#70448)
This isn't super ideal, but at least fixes a bug
1 parent 86712d9 commit cd47295

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

static/app/views/monitors/components/detailsSidebar.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {Tooltip} from 'sentry/components/tooltip';
1010
import {IconCopy} from 'sentry/icons';
1111
import {t, tn} from 'sentry/locale';
1212
import {space} from 'sentry/styles/space';
13-
import {defined} from 'sentry/utils';
1413
import {getFormattedDate} from 'sentry/utils/dates';
1514
import useCopyToClipboard from 'sentry/utils/useCopyToClipboard';
1615
import {DEFAULT_MAX_RUNTIME} from 'sentry/views/monitors/components/monitorForm';
@@ -76,13 +75,11 @@ export default function DetailsSidebar({monitorEnv, monitor}: Props) {
7675
<Thresholds>
7776
<MonitorIndicator status="warning" size={12} />
7877
<Text>
79-
{defined(checkin_margin)
80-
? tn(
81-
'Check-ins missed after %s min',
82-
'Check-ins missed after %s mins',
83-
checkin_margin
84-
)
85-
: t('Check-ins that are missed')}
78+
{tn(
79+
'Check-ins missed after %s min',
80+
'Check-ins missed after %s mins',
81+
checkin_margin ?? 1
82+
)}
8683
</Text>
8784
<MonitorIndicator status="error" size={12} />
8885
<Text>

0 commit comments

Comments
 (0)