From 9eb21bab7b2038835d5f2e26492f846c0573679c Mon Sep 17 00:00:00 2001 From: Michal Muzyk Date: Tue, 6 Feb 2024 11:45:44 +0100 Subject: [PATCH] fix: error type check --- .../ReimbursementAccount/BankInfo/substeps/Confirmation.tsx | 2 +- .../BeneficialOwnerDetailsFormSubsteps/ConfirmationUBO.tsx | 2 +- .../BeneficialOwnerInfo/substeps/CompanyOwnersListUBO.tsx | 2 +- .../ReimbursementAccount/PersonalInfo/substeps/Confirmation.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx b/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx index e9edc9329eec..6b071bfe13c6 100644 --- a/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx +++ b/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx @@ -79,7 +79,7 @@ function Confirmation({reimbursementAccount, reimbursementAccountDraft, onNext, /> )} - {error.length > 0 && ( + {error && error.length > 0 && ( - {error.length > 0 && ( + {error && error.length > 0 && ( - {error.length > 0 && ( + {error && error.length > 0 && ( - {error.length > 0 && ( + {error && error.length > 0 && (