Skip to content

Commit 898f852

Browse files
committed
Fix src/pages/ReimbursementAccount/NonUSD/BeneficialOwnerInfo/BeneficialOwnerDetailsFormSubSteps/Documents.tsx
1 parent ccbe1e8 commit 898f852

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/pages/ReimbursementAccount/NonUSD/BeneficialOwnerInfo/BeneficialOwnerDetailsFormSubSteps

src/pages/ReimbursementAccount/NonUSD/BeneficialOwnerInfo/BeneficialOwnerDetailsFormSubSteps/Documents.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ function Documents({onNext, isEditing, ownerBeingModifiedID}: DocumentsProps) {
3939
const beneficialOwnerCountry = String(reimbursementAccountDraft?.[beneficialOwnerCountryInputID] ?? '');
4040
const isDocumentNeededStatus = getNeededDocumentsStatusForBeneficialOwner(currency, countryStepCountryValue, beneficialOwnerCountry);
4141
const defaultValues: Record<string, FileObject[]> = {
42-
[proofOfOwnershipInputID]: Array.isArray(reimbursementAccountDraft?.[proofOfOwnershipInputID]) ? ((reimbursementAccountDraft?.[proofOfOwnershipInputID] as FileObject[]) ?? []) : [],
43-
[copyOfIDInputID]: Array.isArray(reimbursementAccountDraft?.[copyOfIDInputID]) ? ((reimbursementAccountDraft?.[copyOfIDInputID] as FileObject[]) ?? []) : [],
44-
[addressProofInputID]: Array.isArray(reimbursementAccountDraft?.[addressProofInputID]) ? ((reimbursementAccountDraft?.[addressProofInputID] as FileObject[]) ?? []) : [],
45-
[codiceFiscaleInputID]: Array.isArray(reimbursementAccountDraft?.[codiceFiscaleInputID]) ? ((reimbursementAccountDraft?.[codiceFiscaleInputID] as FileObject[]) ?? []) : [],
42+
[proofOfOwnershipInputID]: Array.isArray(reimbursementAccountDraft?.[proofOfOwnershipInputID]) ? (reimbursementAccountDraft?.[proofOfOwnershipInputID] ?? []) : [],
43+
[copyOfIDInputID]: Array.isArray(reimbursementAccountDraft?.[copyOfIDInputID]) ? (reimbursementAccountDraft?.[copyOfIDInputID] ?? []) : [],
44+
[addressProofInputID]: Array.isArray(reimbursementAccountDraft?.[addressProofInputID]) ? (reimbursementAccountDraft?.[addressProofInputID] ?? []) : [],
45+
[codiceFiscaleInputID]: Array.isArray(reimbursementAccountDraft?.[codiceFiscaleInputID]) ? (reimbursementAccountDraft?.[codiceFiscaleInputID] ?? []) : [],
4646
};
4747

4848
const [uploadedProofOfOwnership, setUploadedProofOfOwnership] = useState<FileObject[]>(defaultValues[proofOfOwnershipInputID]);

0 commit comments

Comments
 (0)