diff --git a/src/javascript/app/pages/trade/purchase/contract-details.jsx b/src/javascript/app/pages/trade/purchase/contract-details.jsx
index ee408e35b32..577b19c3f8d 100644
--- a/src/javascript/app/pages/trade/purchase/contract-details.jsx
+++ b/src/javascript/app/pages/trade/purchase/contract-details.jsx
@@ -1,6 +1,6 @@
/* eslint-disable import/no-unresolved */
import React, { useEffect, useState } from 'react';
-import { Button, Skeleton, Text } from '@deriv-com/quill-ui';
+import { Button, Skeleton, Text } from '@deriv-com/quill-ui';
import { LabelPairedArrowLeftMdRegularIcon } from '@deriv/quill-icons/LabelPaired';
import ContractTable from './contract-table';
import Portal from '../../portal';
@@ -10,13 +10,18 @@ import { localize } from '../../../../_common/localize';
import { Explanation } from '../../bottom/explanation';
import { TimeTooltipWrapper, triggerClick } from '../../../common/helpers';
-const hidePurchaseResults = () =>
- dataManager.setPurchase({
- cd_showAudit: false,
- auditDataEnd: [],
- cd_infoMsg : null,
+const getDefaultPurchaseObject = () => ({
+ cd_showAudit: false,
+ auditDataEnd: [],
+ cd_infoMsg : null,
+});
+const setPurchaseWithDefaults = (additionalProps = {}) => {
+ dataManager.setPurchase({
+ ...getDefaultPurchaseObject(),
+ ...additionalProps,
});
+};
const AuditSection = ({ data }) => {
const auditData = {
@@ -43,7 +48,7 @@ const AuditSection = ({ data }) => {
icon={