From 21f5804df6e2cd34652f52925cdc49e246f481c6 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Sun, 7 Jul 2024 23:47:42 +0100 Subject: [PATCH] Correctly return early for changefield --- src/libs/ReportActionsUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 0cda663931e4..4f35de27e2a3 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -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}); }