From 3f272244d2e431260a53a9f8100f8ca11801d80b Mon Sep 17 00:00:00 2001 From: Ryan Miller Date: Wed, 14 Aug 2024 18:07:12 +1000 Subject: [PATCH] fix: use I18n component in subtleNotifications --- ts/components/conversation/SubtleNotification.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ts/components/conversation/SubtleNotification.tsx b/ts/components/conversation/SubtleNotification.tsx index 4e10d73ed..65f6df824 100644 --- a/ts/components/conversation/SubtleNotification.tsx +++ b/ts/components/conversation/SubtleNotification.tsx @@ -98,7 +98,7 @@ export const NoMessageInConversation = () => { // TODOLATER use this selector across the whole application (left pane excluded) const name = useSelectedNicknameOrProfileNameOrShortenedPubkey(); - const messageText = useMemo(() => { + const content = useMemo(() => { if (isMe) { return ; } @@ -120,9 +120,7 @@ export const NoMessageInConversation = () => { return ( - - - + {content} ); };