aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-08-27 19:01:57 -0300
committerSebastian <sebasjm@gmail.com>2024-08-27 19:01:57 -0300
commitca4bccc5de2d92333267ced69535d4400c394fb9 (patch)
tree4c53d12734aabc4863f57d9820b482052d63c127 /packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
parent94cb658024a17084da5de310bc5104cff6fd8337 (diff)
refresh decisions history when the auditor makes decision
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx')
-rw-r--r--packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
index cea8157b0..e53c74aa5 100644
--- a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
+++ b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
@@ -24,7 +24,7 @@ import {
FormConfiguration,
UIFormElementConfig,
UIHandlerId,
- useTranslationContext
+ useTranslationContext,
} from "@gnu-taler/web-util/browser";
import { format } from "date-fns";
import { Fragment, VNode, h } from "preact";
@@ -33,21 +33,21 @@ import { AmlEvent } from "./CaseDetails.js";
/**
* the exchange doesn't hava a consistent api
* https://bugs.gnunet.org/view.php?id=9142
- *
- * @param data
- * @returns
+ *
+ * @param data
+ * @returns
*/
function fixProvidedInfo(data: object): object {
- return Object.entries(data).reduce((prev, [key,value]) => {
- prev[key] = value
+ return Object.entries(data).reduce((prev, [key, value]) => {
+ prev[key] = value;
if (typeof value === "object" && value["value"]) {
- const v = value["value"]
+ const v = value["value"];
if (typeof v === "object" && v["text"]) {
- prev[key].value = v["text"]
+ prev[key].value = v["text"];
}
}
- return prev
- }, {} as any)
+ return prev;
+ }, {} as any);
}
export function ShowConsolidated({
@@ -62,7 +62,7 @@ export function ShowConsolidated({
const cons = getConsolidated(history, until);
const fixed = fixProvidedInfo(cons.kyc);
- console.log("fixed", fixed)
+
const form: FormConfiguration = {
type: "double-column",
design: [