Skip to content

Commit

Permalink
Feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrine-ds committed Jan 3, 2025
1 parent de5c996 commit 64f32b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
3 changes: 2 additions & 1 deletion packages/shared-business/src/components/FileTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ export const FileTile = ({
.with("UnacceptableDocument", () =>
t("supportingDocuments.rejectionReason.UnacceptableDocument"),
)
.otherwise(() => null)}
.with("other", () => null)
.otherwise(reasonCode => reasonCode)}
</LakeText>

<LakeText>{reason}</LakeText>
Expand Down
19 changes: 1 addition & 18 deletions packages/shared-business/src/utils/SwanFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,7 @@ export type SwanFileStatusInfo =
| {
status: "Refused";
reason: string;
reasonCode?:
| "CompanyNameMismatch"
| "ExpiredDocument"
| "InvalidAddress"
| "InvalidDocument"
| "InvalidOrMissingData"
| "UnacceptableDocument"
| "ProviderColorIdDocumentRequired"
| "MissingSignature"
| "BadDocumentQuality"
| "FullDocumentRequired"
| "MissingDescription"
| "InvalidTransaction"
| "TransactionNameMismatch"
| "TransactionDateMismatch"
| "TransactionAmountMismatch"
| "IbanMismatch"
| "Other";
reasonCode?: string;
};

export type SwanFile = {
Expand Down

0 comments on commit 64f32b6

Please sign in to comment.