From a1db14920eac718ae1b8da0b338aa7adeea28dff Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Fri, 27 Aug 2021 17:26:06 -0700 Subject: [PATCH] Get rid of unnecessary promise chain --- src/libs/actions/Report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 5b1b96cf8615..1d3788e5343d 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -754,8 +754,8 @@ function subscribeToReportCommentPushNotifications() { // Open correct report when push notification is clicked PushNotification.onSelected(PushNotification.TYPE.REPORT_COMMENT, ({reportID}) => { - Linking.openURL(`${CONST.DEEPLINK_BASE_URL}${ROUTES.getReportRoute(reportID)}`) - .then(() => Navigation.setDidTapNotification()); + Navigation.setDidTapNotification(); + Linking.openURL(`${CONST.DEEPLINK_BASE_URL}${ROUTES.getReportRoute(reportID)}`); }); }