From ffe6c9f34f076b877e229b6326044febb43ba16d Mon Sep 17 00:00:00 2001 From: Aum Bhatt <125039206+aum-deriv@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:45:42 +0400 Subject: [PATCH] fix: restart from place where client left the verification flow (#16525) --- .../cfd/flows/ClientVerification/ClientVerification.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/wallets/src/features/cfd/flows/ClientVerification/ClientVerification.tsx b/packages/wallets/src/features/cfd/flows/ClientVerification/ClientVerification.tsx index 26c70fe76745..25884d3c7c19 100644 --- a/packages/wallets/src/features/cfd/flows/ClientVerification/ClientVerification.tsx +++ b/packages/wallets/src/features/cfd/flows/ClientVerification/ClientVerification.tsx @@ -57,10 +57,10 @@ const ClientVerification: React.FC = ({ const isPoiRequired = useMemo( () => - poiData?.current.status && isSubmissionRequired[poiData?.current.status] && poiData?.previous?.status - ? // @ts-expect-error broken api-types for attempts/latest key in get_account_settings - isSubmissionRequired[poiData.previous.status] - : true, + (poiData?.current.status && isSubmissionRequired[poiData?.current.status]) || + (poiData?.previous?.status && + // @ts-expect-error broken api-types for attempts/latest key in get_account_settings + isSubmissionRequired[poiData.previous.status]), [poiData] );