aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx')
-rw-r--r--packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx
index 21faff058..bab672192 100644
--- a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx
+++ b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx
@@ -3,6 +3,8 @@ import {
AmountJson,
Amounts,
Codec,
+ OperationFail,
+ OperationOk,
OperationResult,
buildCodecForObject,
codecForNumber,
@@ -49,7 +51,7 @@ export function AntiMoneyLaunderingForm({
<DefaultForm
initial={initial}
form={theForm.impl(initial)}
- onUpdate={() => {}}
+ onUpdate={() => { }}
onSubmit={(formValue) => {
if (formValue.state === undefined || formValue.threshold === undefined)
return;
@@ -113,10 +115,7 @@ type ParseJustificationFail =
export function parseJustification(
s: string,
listOfAllKnownForms: FormMetadata<any>[],
-): OperationResult<
- { justification: Justification; metadata: FormMetadata<any> },
- ParseJustificationFail
-> {
+): OperationOk<{ justification: Justification; metadata: FormMetadata<any> }> | OperationFail<ParseJustificationFail> {
try {
const justification = JSON.parse(s);
const info = codecForSimpleFormMetadata().decode(justification);