Skip to content

Commit

Permalink
fix add default value for fieldToEdit param
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Nov 16, 2023
1 parent 7bbc9cc commit c5086d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ function getTransactionDetails(transaction, createdDateFormat = CONST.DATE.FNS_F
* @param {String} fieldToEdit
* @returns {Boolean}
*/
function canEditMoneyRequest(reportAction, fieldToEdit) {
function canEditMoneyRequest(reportAction, fieldToEdit = '') {
const isDeleted = ReportActionsUtils.isDeletedAction(reportAction);

if (isDeleted) {
Expand Down

0 comments on commit c5086d1

Please sign in to comment.