Skip to content

Commit

Permalink
resave vc if it's somehow not in snap
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Feb 1, 2024
1 parent 9936f85 commit 7ddb5d2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ProofSubmitted: FC<StepProps> = ({ nextStepCb, className, ...rest }) => {
KYC_PROVIDERS_DETAILS_MAP,
detectProviderFromVC,
} = useKycContext()
const { isEthAddressProved, isDidProved, txSubmitExplorerLink } =
const { isEthAddressProved, isDidProved, txSubmitExplorerLink, saveVC } =
useZkpContext()

const [count, { startCountdown }] = useCountdown({
Expand Down Expand Up @@ -66,12 +66,13 @@ const ProofSubmitted: FC<StepProps> = ({ nextStepCb, className, ...rest }) => {

try {
await detectProviderFromVC()
await saveVC()
} catch (error) {
ErrorHandler.process(error)
}

setIsPending(false)
}, [detectProviderFromVC])
}, [detectProviderFromVC, saveVC])

const RetrievingDataBtn = useMemo(
() =>
Expand Down

0 comments on commit 7ddb5d2

Please sign in to comment.