@@ -65,7 +65,10 @@ function ReportSettingsPage(props) {
65
65
66
66
const shouldDisableSettings = _ . isEmpty ( report ) || ReportUtils . shouldDisableSettings ( report ) || ReportUtils . isArchivedRoom ( report ) ;
67
67
const shouldShowRoomName = ! ReportUtils . isPolicyExpenseChat ( report ) && ! ReportUtils . isChatThread ( report ) ;
68
- const notificationPreference = translate ( `notificationPreferencesPage.notificationPreferences.${ report . notificationPreference } ` ) ;
68
+ const notificationPreference =
69
+ report . notificationPreference !== CONST . REPORT . NOTIFICATION_PREFERENCE . HIDDEN
70
+ ? translate ( `notificationPreferencesPage.notificationPreferences.${ report . notificationPreference } ` )
71
+ : '' ;
69
72
const writeCapability = ReportUtils . isAdminRoom ( report ) ? CONST . REPORT . WRITE_CAPABILITIES . ADMINS : report . writeCapability || CONST . REPORT . WRITE_CAPABILITIES . ALL ;
70
73
71
74
const writeCapabilityText = translate ( `writeCapabilityPage.writeCapability.${ writeCapability } ` ) ;
@@ -79,12 +82,14 @@ function ReportSettingsPage(props) {
79
82
onBackButtonPress = { ( ) => Navigation . goBack ( ROUTES . getReportDetailsRoute ( report . reportID ) ) }
80
83
/>
81
84
< ScrollView style = { [ styles . flex1 ] } >
82
- < MenuItemWithTopDescription
83
- shouldShowRightIcon
84
- title = { notificationPreference }
85
- description = { translate ( 'notificationPreferencesPage.label' ) }
86
- onPress = { ( ) => Navigation . navigate ( ROUTES . getReportSettingsNotificationPreferencesRoute ( report . reportID ) ) }
87
- />
85
+ { report . notificationPreference !== CONST . REPORT . NOTIFICATION_PREFERENCE . HIDDEN && (
86
+ < MenuItemWithTopDescription
87
+ shouldShowRightIcon
88
+ title = { notificationPreference }
89
+ description = { translate ( 'notificationPreferencesPage.label' ) }
90
+ onPress = { ( ) => Navigation . navigate ( ROUTES . getReportSettingsNotificationPreferencesRoute ( report . reportID ) ) }
91
+ />
92
+ ) }
88
93
{ shouldShowRoomName && (
89
94
< OfflineWithFeedback
90
95
pendingAction = { lodashGet ( report , 'pendingFields.reportName' , null ) }
0 commit comments