From 783fd351ba5299a74cc9e6885939ef09034ed97d Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 25 Jul 2024 18:07:15 -0500 Subject: Add labels to a few missing places (#4838) --- src/components/moderation/LabelsOnMeDialog.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/components/moderation/LabelsOnMeDialog.tsx') diff --git a/src/components/moderation/LabelsOnMeDialog.tsx b/src/components/moderation/LabelsOnMeDialog.tsx index e581d22c1..b920a0d25 100644 --- a/src/components/moderation/LabelsOnMeDialog.tsx +++ b/src/components/moderation/LabelsOnMeDialog.tsx @@ -128,6 +128,9 @@ function Label({ const t = useTheme() const {_} = useLingui() const {labeler, strings} = useLabelInfo(label) + const sourceName = labeler + ? sanitizeHandle(labeler.creator.handle, '@') + : label.src return ( Source:{' '} control.close()}> - {labeler - ? sanitizeHandle(labeler.creator.handle, '@') - : label.src} + {sourceName} )} @@ -203,6 +205,9 @@ function AppealForm({ const isAccountReport = 'did' in subject const agent = useAgent() const gate = useGate() + const sourceName = labeler + ? sanitizeHandle(labeler.creator.handle, '@') + : label.src const {mutate, isPending} = useMutation({ mutationFn: async () => { @@ -260,12 +265,13 @@ function AppealForm({ This appeal will be sent to{' '} control.close()} style={[a.text_md, a.leading_snug]}> - {labeler ? sanitizeHandle(labeler.creator.handle, '@') : label.src} + {sourceName} . -- cgit 1.4.1