diff --git a/src/javascript/app/pages/trade/purchase/contract-details.jsx b/src/javascript/app/pages/trade/purchase/contract-details.jsx index 745ae9cae2f..ba39472445f 100644 --- a/src/javascript/app/pages/trade/purchase/contract-details.jsx +++ b/src/javascript/app/pages/trade/purchase/contract-details.jsx @@ -13,16 +13,19 @@ import { TimeTooltipWrapper, triggerClick } from '../../../common/helpers'; const AuditSection = ({ data }) => { const auditData = { start: { - title : localize('Contract starts'), - content: data?.auditDataStart, + title : localize('Contract starts'), + content : data?.auditDataStart, + isVisible: data?.auditDataStart?.length > 0, }, end: { - title : localize('Contract ends'), - content: data?.auditDataEnd, + title : localize('Contract ends'), + content : data?.auditDataEnd, + isVisible: data?.auditDataEnd?.length > 0, }, details: { - title : localize('Contract details'), - content: data?.auditDataDetails, + title : localize('Contract details'), + content : data?.auditDataDetails, + isVisible: data?.auditDataDetails?.length > 0, }, }; @@ -37,6 +40,9 @@ const AuditSection = ({ data }) => { onClick={() => { dataManager.setPurchase({ cd_showAudit: false, + auditDataEnd: [], + cd_infoMsg : null, + }); triggerClick('#contract_purchase_button'); }} @@ -57,17 +63,17 @@ const AuditSection = ({ data }) => {