From 9936f85365310bc73b5a9f1f515e4001fb844652 Mon Sep 17 00:00:00 2001 From: lukachi Date: Thu, 1 Feb 2024 15:39:33 +0200 Subject: [PATCH] prevent detecting provider from vc if did not exist --- src/contexts/KycContext/KycContext.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/contexts/KycContext/KycContext.tsx b/src/contexts/KycContext/KycContext.tsx index 010d3ba..4cff5a9 100644 --- a/src/contexts/KycContext/KycContext.tsx +++ b/src/contexts/KycContext/KycContext.tsx @@ -412,6 +412,8 @@ const KycContextProvider: FC> = ({ try { const identityId = identityIdString?.split(':').pop() + if (!identityId) return + const { data } = await api.get<{ provider: string }>(`/integrations/kyc-service/v1/public/${identityId}/provider`)