aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-09-09 18:47:37 -0300
committerSebastian <sebasjm@gmail.com>2024-09-09 18:48:00 -0300
commitcaccb24902e30dff9edcba1685ce23445378b4b8 (patch)
treebb02d84c54dd1f08b6319d1d7526620fdd3f181a /packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
parent049b369f745edb5f8a2d7ec57d5af98ca81b05fa (diff)
show bic in aml search
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx')
-rw-r--r--packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx40
1 files changed, 19 insertions, 21 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
index 67d3f3f7a..2866755c2 100644
--- a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
+++ b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
@@ -68,27 +68,25 @@ export function ShowConsolidated({
const formConfig: FormConfiguration = {
type: "double-column",
- design: [
- Object.entries(fixed).length > 0
- ? {
- title: i18n.str`KYC collected info`,
- fields: Object.entries(fixed).map(([key, field]) => {
- const result: UIFormElementConfig = {
- type: "text",
- label: key as TranslatedString,
- id: `${key}.value` as UIHandlerId,
- disabled: true,
- help: `At ${
- field.since.t_ms === "never"
- ? "never"
- : format(field.since.t_ms, "dd/MM/yyyy HH:mm:ss")
- }` as TranslatedString,
- };
- return result;
- }),
- }
- : undefined!,
- ],
+ design: Object.entries(fixed).length > 0 ? [
+
+ {
+ title: i18n.str`KYC collected info`,
+ fields: Object.entries(fixed).map(([key, field]) => {
+ const result: UIFormElementConfig = {
+ type: "text",
+ label: key as TranslatedString,
+ id: `${key}.value` as UIHandlerId,
+ disabled: true,
+ help: `At ${field.since.t_ms === "never"
+ ? "never"
+ : format(field.since.t_ms, "dd/MM/yyyy HH:mm:ss")
+ }` as TranslatedString,
+ };
+ return result;
+ }),
+ }
+ ] : [],
};
const shape: Array<UIHandlerId> = formConfig.design.flatMap((field) =>
getShapeFromFields(field.fields),