diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-04 09:43:03 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-04 09:43:23 -0300 |
commit | 8407a1d52e3a89f9c005f9820586d2d0a123c177 (patch) | |
tree | 2e467910a656f5b34758b4b4d2ceb9e8f41cfc00 /packages/demobank-ui/src/pages/OperationState/state.ts | |
parent | 8616c67de8de79a39298299eac9dc368749bfc7a (diff) | |
download | wallet-core-8407a1d52e3a89f9c005f9820586d2d0a123c177.tar.xz |
api sync, withdrawal info without password, account creation WIP
Diffstat (limited to 'packages/demobank-ui/src/pages/OperationState/state.ts')
-rw-r--r-- | packages/demobank-ui/src/pages/OperationState/state.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/pages/OperationState/state.ts b/packages/demobank-ui/src/pages/OperationState/state.ts index da924104a..57ede87a7 100644 --- a/packages/demobank-ui/src/pages/OperationState/state.ts +++ b/packages/demobank-ui/src/pages/OperationState/state.ts @@ -134,6 +134,7 @@ export function useComponentState({ currency, onClose }: Props): utils.Recursive if (result.type === "fail") { switch (result.case) { + case "invalid-id": case "not-found": { return { status: "aborted", @@ -144,7 +145,7 @@ export function useComponentState({ currency, onClose }: Props): utils.Recursive }, } } - default: assertUnreachable(result.case) + default: assertUnreachable(result) } } @@ -180,9 +181,9 @@ export function useComponentState({ currency, onClose }: Props): utils.Recursive status: "ready", error: undefined, uri: parsedUri, - onClose: !creds ? (async () => { - onClose(); - return undefined + onClose: !creds ? (async () => { + onClose(); + return undefined }) : doAbort, } } |