diff options
Diffstat (limited to 'packages/demobank-ui/src/components/Cashouts/state.ts')
-rw-r--r-- | packages/demobank-ui/src/components/Cashouts/state.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/demobank-ui/src/components/Cashouts/state.ts b/packages/demobank-ui/src/components/Cashouts/state.ts index 47ad0a297..814755541 100644 --- a/packages/demobank-ui/src/components/Cashouts/state.ts +++ b/packages/demobank-ui/src/components/Cashouts/state.ts @@ -32,6 +32,12 @@ export function useComponentState({ account, onSelected }: Props): State { error: result, }; } + if (result.type === "fail") { + return { + status: "failed", + error: result + } + } return { status: "ready", |