From d2abaab3056070aaca98daa2ac154b38fba53930 Mon Sep 17 00:00:00 2001 From: Kyle Consalus Date: Wed, 8 Apr 2026 12:33:55 -0700 Subject: [PATCH] fix(alerts): Better messaging for missing snoozeCreatedBy --- .../alerts/rules/issue/details/ruleDetails.tsx | 14 ++++++++------ .../app/views/alerts/rules/metric/details/body.tsx | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/static/app/views/alerts/rules/issue/details/ruleDetails.tsx b/static/app/views/alerts/rules/issue/details/ruleDetails.tsx index b797d399f51ea0..73254830dbdad8 100644 --- a/static/app/views/alerts/rules/issue/details/ruleDetails.tsx +++ b/static/app/views/alerts/rules/issue/details/ruleDetails.tsx @@ -473,12 +473,14 @@ export default function AlertRuleDetails() { {rule.snoozeForEveryone ? ( - {tct( - "[creator] muted this alert for everyone so you won't get these notifications in the future.", - { - creator: rule.snoozeCreatedBy, - } - )} + {rule.snoozeCreatedBy + ? tct( + "[creator] muted this alert for everyone so you won't get these notifications in the future.", + {creator: rule.snoozeCreatedBy} + ) + : t( + "This alert has been muted for everyone so you won't get these notifications in the future." + )} ) : ( diff --git a/static/app/views/alerts/rules/metric/details/body.tsx b/static/app/views/alerts/rules/metric/details/body.tsx index 83318ec2549b49..d8e6d133bfe87b 100644 --- a/static/app/views/alerts/rules/metric/details/body.tsx +++ b/static/app/views/alerts/rules/metric/details/body.tsx @@ -175,12 +175,14 @@ export function MetricDetailsBody({ {rule.snoozeForEveryone ? ( - {tct( - "[creator] muted this alert for everyone so you won't get these notifications in the future.", - { - creator: rule.snoozeCreatedBy, - } - )} + {rule.snoozeCreatedBy + ? tct( + "[creator] muted this alert for everyone so you won't get these notifications in the future.", + {creator: rule.snoozeCreatedBy} + ) + : t( + "This alert has been muted for everyone so you won't get these notifications in the future." + )} ) : (