aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/hooks/webhooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/webhooks.ts')
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/webhooks.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/webhooks.ts b/packages/merchant-backoffice-ui/src/hooks/webhooks.ts
index 7a8043441..c91fff8b4 100644
--- a/packages/merchant-backoffice-ui/src/hooks/webhooks.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/webhooks.ts
@@ -116,7 +116,7 @@ export function useInstanceWebhooks(
if (afterData) setLastAfter(afterData);
}, [afterData]);
- if (afterError) return afterError.info;
+ if (afterError) return afterError.cause;
const isReachingEnd =
afterData && afterData.data.webhooks.length < totalAfter;
@@ -171,6 +171,6 @@ export function useWebhookDetails(
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 };
}