Skip to content

Commit

Permalink
Return 0 instead of an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Nov 9, 2023
1 parent 4547f97 commit 346e6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -2949,7 +2949,7 @@ function navigateToNextPage(iou, iouType, report, path = '') {
* @returns {String}
*/
function getIOUReportID(iou, route) {
return lodashGet(route, 'params.reportID') || lodashGet(iou, 'participants.0.reportID', '');
return lodashGet(route, 'params.reportID') || lodashGet(iou, 'participants.0.reportID', '0');
}

export {
Expand Down

0 comments on commit 346e6b6

Please sign in to comment.