commit d14e9c313847b485c57c1de7caf318bc8dfaf9bd
parent 515cc95592e88cea5d48e49175a92c4635d97f6b
Author: Sebastian <sebasjm@gmail.com>
Date: Wed, 26 Mar 2025 12:13:15 -0300
fix ui form
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/packages/aml-backoffice-ui/src/pages/CreateAccount.tsx b/packages/aml-backoffice-ui/src/pages/CreateAccount.tsx
@@ -102,8 +102,7 @@ export function CreateAccount(): VNode {
status.status === "fail" || officer.state !== "not-found"
? undefined
: withErrorHandler(
- async () => officer.create(handler.fieldHandlers.password!.value!),
- // async () => officer.create(handler.password!.value!),
+ async () => officer.create(status.result.password),
() => {},
);
return (
diff --git a/packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx b/packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx
@@ -67,7 +67,7 @@ export function UnlockAccount(): VNode {
status.status === "fail" || officer.state !== "locked"
? undefined
: withErrorHandler(
- async () => officer.tryUnlock(handler.fieldHandlers.password!.value!),
+ async () => officer.tryUnlock(status.result.password),
() => {},
);
@@ -103,7 +103,9 @@ export function UnlockAccount(): VNode {
name="password"
type="password"
required
- handler={handler.fieldHandlers.password}
+ // handler={handler.password}
+ //FIXME: we shoud be able to access the handler directly #9663
+ handler={handler.fieldHandlers["root.0"]}
/>
</div>