From 84317afa371a97711cf2411487436d7f26b6ba0b Mon Sep 17 00:00:00 2001 From: Shahe Shahinyan Date: Mon, 5 Feb 2024 00:54:12 +0400 Subject: [PATCH] Addressed to reviewer comments --- src/components/DisplayNames/index.tsx | 12 +++++++++++- src/pages/settings/Report/ReportSettingsPage.tsx | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/DisplayNames/index.tsx b/src/components/DisplayNames/index.tsx index 155193368cc5..5b8844eb4e99 100644 --- a/src/components/DisplayNames/index.tsx +++ b/src/components/DisplayNames/index.tsx @@ -18,9 +18,19 @@ function DisplayNames({fullTitle, tooltipEnabled, textStyles, numberOfLines, sho ); } + if (shouldUseFullTitle) { + return ( + + ); + } + return ( {translate(`newRoomPage.visibilityOptions.${report.visibility}`)} - {report.visibility && translate(`newRoomPage.${report.visibility}Description`)} + {translate(`newRoomPage.${report.visibility}Description`)} )}