From a4f096e44a2a7c7cba369ffef7b063b44a631c4c Mon Sep 17 00:00:00 2001 From: Pubudu Ranasinghe Date: Thu, 25 May 2023 19:45:16 +0530 Subject: [PATCH] Use boolean parsing and fix formatting --- .../HTMLEngineProvider/HTMLRenderers/EditedRenderer.js | 3 +-- src/pages/home/report/ReportActionItemFragment.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/HTMLEngineProvider/HTMLRenderers/EditedRenderer.js b/src/components/HTMLEngineProvider/HTMLRenderers/EditedRenderer.js index be7aaad6fd77..b79ca3f54dbf 100644 --- a/src/components/HTMLEngineProvider/HTMLRenderers/EditedRenderer.js +++ b/src/components/HTMLEngineProvider/HTMLRenderers/EditedRenderer.js @@ -15,8 +15,7 @@ const propTypes = { const EditedRenderer = (props) => { const defaultRendererProps = _.omit(props, ['TDefaultRenderer', 'style', 'tnode']); - const isPendingDelete = !!props.tnode.attributes.deleted; - + const isPendingDelete = Boolean(props.tnode.attributes.deleted !== undefined); return ( { // Only render HTML if we have html in the fragment if (!differByLineBreaksOnly) { const isPendingDelete = props.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && props.network.isOffline; - const editedTag = props.fragment.isEdited ? `` : ''; + const editedTag = props.fragment.isEdited ? `` : ''; const htmlContent = applyStrikethrough(html + editedTag, isPendingDelete); return ${htmlContent}` : `${htmlContent}`} />;