Skip to content

Commit

Permalink
Get rid of unnecessary promise chain
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Aug 28, 2021
1 parent ab9400f commit a1db149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
});
}

Expand Down

0 comments on commit a1db149

Please sign in to comment.