Skip to content

Commit

Permalink
Merge pull request #44944 from Expensify/vit-44885
Browse files Browse the repository at this point in the history
Correctly return early for CHANGEFIELD
  • Loading branch information
dangrous authored Jul 8, 2024
2 parents 8f9bea9 + 21f5804 commit ca92ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ function getMessageOfOldDotReportAction(oldDotAction: PartialReportAction | OldD
case CONST.REPORT.ACTIONS.TYPE.CHANGE_FIELD: {
const {oldValue, newValue, fieldName} = originalMessage;
if (!oldValue) {
Localize.translateLocal('report.actions.type.changeFieldEmpty', {newValue, fieldName});
return Localize.translateLocal('report.actions.type.changeFieldEmpty', {newValue, fieldName});
}
return Localize.translateLocal('report.actions.type.changeField', {oldValue, newValue, fieldName});
}
Expand Down

0 comments on commit ca92ae4

Please sign in to comment.