diff options
author | Sebastian <sebasjm@gmail.com> | 2023-05-12 11:23:38 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-05-12 11:23:38 -0300 |
commit | da93d2ba7eca78359490d5e35b8c70b2bcaf4072 (patch) | |
tree | 50dbf05271ae43546665d58ab00153fa5e4fd591 /packages/demobank-ui/src/hooks/circuit.ts | |
parent | f7481ba1d8e4575bc534025dbe99f57c6b50102e (diff) | |
download | wallet-core-da93d2ba7eca78359490d5e35b8c70b2bcaf4072.tar.xz |
fix getting wrong error message after 401 response in merchant backoffice
Diffstat (limited to 'packages/demobank-ui/src/hooks/circuit.ts')
-rw-r--r-- | packages/demobank-ui/src/hooks/circuit.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/hooks/circuit.ts b/packages/demobank-ui/src/hooks/circuit.ts index 3ed8ad358..06557b77f 100644 --- a/packages/demobank-ui/src/hooks/circuit.ts +++ b/packages/demobank-ui/src/hooks/circuit.ts @@ -379,7 +379,7 @@ export function useBusinessAccountDetails( }); if (data) return data; - if (error) return error.info; + if (error) return error.cause; return { loading: true }; } @@ -406,7 +406,7 @@ export function useRatiosAndFeeConfig(): HttpResponse< }); if (data) return data; - if (error) return error.info; + if (error) return error.cause; return { loading: true }; } @@ -479,7 +479,7 @@ export function useBusinessAccounts( return { ok: true as const, data: { customers }, ...pagination }; }, [afterData?.data]); - if (afterError) return afterError.info; + if (afterError) return afterError.cause; if (afterData) { return result; } @@ -565,6 +565,6 @@ export function useCashoutDetails( }); if (data) return data; - if (error) return error.info; + if (error) return error.cause; return { loading: true }; } |