From 80b51c0e3f6649c6f9fa317ff92c98670b7c1201 Mon Sep 17 00:00:00 2001 From: "Jason C. Leach" Date: Fri, 20 Sep 2024 11:10:54 -0700 Subject: [PATCH] fix: remove ias auto advance (#2180) Signed-off-by: Jason C. Leach --- app/src/screens/PersonCredentialLoading.tsx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/src/screens/PersonCredentialLoading.tsx b/app/src/screens/PersonCredentialLoading.tsx index c3c92ce3..5f2d2c85 100644 --- a/app/src/screens/PersonCredentialLoading.tsx +++ b/app/src/screens/PersonCredentialLoading.tsx @@ -46,7 +46,6 @@ const PersonCredentialLoading: React.FC = ({ navigation }) => { throw new Error('Unable to fetch agent from Credo') } const { t } = useTranslation() - const attestationProofRequestWaitTimeout = 10000 const [didCompleteAttestationProofRequest, setDidCompleteAttestationProofRequest] = useState(false) const styles = StyleSheet.create({ @@ -91,23 +90,6 @@ const PersonCredentialLoading: React.FC = ({ navigation }) => { connect() }, []) - useEffect(() => { - if (!remoteAgentDetails) { - return - } - - timer.current = setTimeout(() => { - const proofRequest = receivedProofRequests.find((proof) => proof.connectionId === remoteAgentDetails.connectionId) - - if (!proofRequest) { - // No proof from our IAS Agent to respond to, do nothing. - logger.info(`Waited ${attestationProofRequestWaitTimeout / 1000}sec on attestation proof request, continuing`) - - setDidCompleteAttestationProofRequest(true) - } - }, attestationProofRequestWaitTimeout) - }, [remoteAgentDetails, receivedProofRequests]) - // when a person credential offer is received, show the // offer screen to the user. const goToCredentialOffer = (credentialId: string) => {