From 4f3bee95e68856a1bb72c2f54790073f7d3d1f58 Mon Sep 17 00:00:00 2001 From: sniedzielski Date: Fri, 5 Apr 2024 10:35:48 +0200 Subject: [PATCH] CM-703: Replace Hyphen for no changes - the same as initial value --- src/components/TaskPreviewCell.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/TaskPreviewCell.js b/src/components/TaskPreviewCell.js index 6ce6b88..2aed476 100644 --- a/src/components/TaskPreviewCell.js +++ b/src/components/TaskPreviewCell.js @@ -5,9 +5,7 @@ function TaskPreviewCell({ formatterIndex, itemData, incomingData, formatter, jsonExt, setAdditionalData, }) { const showHistorical = (itemIncomingData) => { - if (formatter(itemData, jsonExt, formatterIndex, setAdditionalData) - === formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData) - || !formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData)) { + if (!formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData)) { return HYPHEN; } return formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData);