diff options
Diffstat (limited to 'packages/demobank-ui/src/hooks/access.ts')
-rw-r--r-- | packages/demobank-ui/src/hooks/access.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/hooks/access.ts b/packages/demobank-ui/src/hooks/access.ts index 0d4a8bab8..b8b6ab899 100644 --- a/packages/demobank-ui/src/hooks/access.ts +++ b/packages/demobank-ui/src/hooks/access.ts @@ -209,7 +209,7 @@ export function useAccountDetails( }); return clone; } - if (error) return error.info; + if (error) return error.cause; return { loading: true }; } @@ -239,7 +239,7 @@ export function useWithdrawalDetails( // if (isValidating) return { loading: true, data: data?.data }; if (data) return data; - if (error) return error.info; + if (error) return error.cause; return { loading: true }; } @@ -269,7 +269,7 @@ export function useTransactionDetails( // if (isValidating) return { loading: true, data: data?.data }; if (data) return data; - if (error) return error.info; + if (error) return error.cause; return { loading: true }; } @@ -307,7 +307,7 @@ export function usePublicAccounts( if (afterData) setLastAfter(afterData); }, [afterData]); - if (afterError) return afterError.info; + if (afterError) return afterError.cause; // if the query returns less that we ask, then we have reach the end or beginning const isReachingEnd = |