From 7fe5f3767ea256fc9ebe4b5ef3f79d4c168a331f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 21 Apr 2023 10:49:02 -0300 Subject: integrate to the web util testing api --- packages/demobank-ui/src/hooks/access.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/demobank-ui/src/hooks/access.ts') diff --git a/packages/demobank-ui/src/hooks/access.ts b/packages/demobank-ui/src/hooks/access.ts index 546d59a84..5eddec033 100644 --- a/packages/demobank-ui/src/hooks/access.ts +++ b/packages/demobank-ui/src/hooks/access.ts @@ -378,7 +378,9 @@ export function useTransactions( 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 = -- cgit v1.2.3