Skip to content

Commit

Permalink
Correctly return early for changefield
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Jul 7, 2024
1 parent ee4e6ba commit 21f5804
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 @@ -1172,7 +1172,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 21f5804

Please sign in to comment.