Skip to content

Commit

Permalink
Stop call to Get=reportStuff with reportID = undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Jul 19, 2021
1 parent c4a5c8b commit 8f543ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,13 @@ function fetchChatReportsByIDs(chatList) {
}

return fetchIOUReportID(participants[0])
.then(iouReportID => fetchIOUReport(iouReportID, chatReport.reportID));
.then((iouReportID) => {
if (!iouReportID) {
return Promise.resolve();
}

return fetchIOUReport(iouReportID, chatReport.reportID);
});
}));
})
.then((iouReportObjects) => {
Expand Down

0 comments on commit 8f543ba

Please sign in to comment.