Skip to content

Commit

Permalink
make comment optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonals committed Aug 8, 2023
1 parent f2ac9f7 commit 2c0bbc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1852,11 +1852,11 @@ function buildOptimisticIOUReportAction(
*
* @param {Object} chatReport
* @param {Object} iouReport
* @param {String} comment - User comment for the IOU.
* @param {String} [comment] - User comment for the IOU.
*
* @returns {Object}
*/
function buildOptimisticReportPreview(chatReport, iouReport, comment) {
function buildOptimisticReportPreview(chatReport, iouReport, comment = '') {
const message = getReportPreviewMessage(iouReport);
return {
reportActionID: NumberUtils.rand64(),
Expand Down

0 comments on commit 2c0bbc7

Please sign in to comment.