Skip to content

Commit

Permalink
prevent detecting provider from vc if did not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Feb 1, 2024
1 parent c7aa5aa commit 9936f85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/contexts/KycContext/KycContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ const KycContextProvider: FC<HTMLAttributes<HTMLDivElement>> = ({
try {
const identityId = identityIdString?.split(':').pop()

if (!identityId) return

const { data } = await api.get<{
provider: string
}>(`/integrations/kyc-service/v1/public/${identityId}/provider`)
Expand Down

0 comments on commit 9936f85

Please sign in to comment.