diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 8156ddab6bda..38cd6951ae79 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -2220,13 +2220,13 @@ function navigateToDetailsPage(report) { * * @param {Object} report */ -function goBackToDetailsPage(report){ +function goBackToDetailsPage(report) { if (isOneOnOneChat(report)) { Navigation.goBack(ROUTES.PROFILE.getRoute(report.participantAccountIDs[0])); return; } Navigation.goBack(ROUTES.REPORT_SETTINGS.getRoute(report.reportID)); -}; +} /** * Generate a random reportID up to 53 bits aka 9,007,199,254,740,991 (Number.MAX_SAFE_INTEGER). diff --git a/src/pages/settings/Report/NotificationPreferencePage.js b/src/pages/settings/Report/NotificationPreferencePage.js index 307a539942c7..c6044bd81efe 100644 --- a/src/pages/settings/Report/NotificationPreferencePage.js +++ b/src/pages/settings/Report/NotificationPreferencePage.js @@ -43,7 +43,9 @@ function NotificationPreferencePage(props) { /> Report.updateNotificationPreference(props.report.reportID, props.report.notificationPreference, option.value, true, undefined, undefined, props.report)} + onSelectRow={(option) => + Report.updateNotificationPreference(props.report.reportID, props.report.notificationPreference, option.value, true, undefined, undefined, props.report) + } initiallyFocusedOptionKey={_.find(notificationPreferenceOptions, (locale) => locale.isSelected).keyForList} />