From 07d41752131a8858253052f7fa41eb253603321d Mon Sep 17 00:00:00 2001
From: Maryia <103177211+maryia-binary@users.noreply.github.com>
Date: Mon, 11 Jul 2022 18:44:40 +0300
Subject: [PATCH] Maryia/fix: quick fix for failed & pending statuses (#19)
* fix for pending statuses
* showing status when the card is selected
* quick fix for poi/poa failed statuses & footnotes
---
.../Containers/jurisdiction-modal-content.tsx | 48 +++++++++++--------
.../cfd/src/Containers/jurisdiction-modal.tsx | 6 +--
2 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/packages/cfd/src/Containers/jurisdiction-modal-content.tsx b/packages/cfd/src/Containers/jurisdiction-modal-content.tsx
index 64724e81ff80..99b2f7425059 100644
--- a/packages/cfd/src/Containers/jurisdiction-modal-content.tsx
+++ b/packages/cfd/src/Containers/jurisdiction-modal-content.tsx
@@ -113,7 +113,7 @@ const JurisdictionCard = ({
)}
- {!poa_failed && !poi_failed && is_pending_authentication && type_of_card !== 'svg' && (
+ {!poa_failed && !poi_failed && is_pending_authentication && type_of_card && type_of_card !== 'svg' && (
@@ -140,7 +140,7 @@ const JurisdictionCard = ({
)} */}
- {poi_failed && type_of_card !== 'svg' && (
+ {poi_failed && !poa_failed && type_of_card && type_of_card !== 'svg' && (
@@ -149,7 +149,7 @@ const JurisdictionCard = ({
)}
- {poa_failed && type_of_card !== 'svg' && (
+ {poa_failed && !poi_failed && type_of_card && type_of_card !== 'svg' && (
@@ -158,6 +158,15 @@ const JurisdictionCard = ({
)}
+ {poa_failed && poi_failed && type_of_card && type_of_card !== 'svg' && (
+
+ )}
>
);
@@ -258,22 +267,19 @@ const JurisdictionModalContent = ({
const ModalFootNote = () => {
return (
<>
- {poa_none &&
- poi_none &&
- jurisdiction_selected_card !== 'svg' &&
- jurisdiction_selected_card !== 'labuan' && (
-
-
-
- )}
- {poi_failed && jurisdiction_selected_card !== 'svg' && (
+ {poa_none && poi_none && jurisdiction_selected_card !== 'svg' && jurisdiction_selected_card && (
+
+
+
+ )}
+ {poi_failed && !poa_failed && jurisdiction_selected_card && jurisdiction_selected_card !== 'svg' && (
)}
- {poa_failed && jurisdiction_selected_card !== 'svg' && (
+ {poa_failed && !poi_failed && jurisdiction_selected_card && jurisdiction_selected_card !== 'svg' && (
)}
- {poa_failed && poi_failed && jurisdiction_selected_card !== 'svg' && (
+ {poa_failed && poi_failed && jurisdiction_selected_card && jurisdiction_selected_card !== 'svg' && (
{
const type_of_account = {