Skip to content

Commit

Permalink
fix: remove ias auto advance (#2180)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach authored Sep 20, 2024
1 parent 1660dea commit 80b51c0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions app/src/screens/PersonCredentialLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const PersonCredentialLoading: React.FC<PersonProps> = ({ navigation }) => {
throw new Error('Unable to fetch agent from Credo')
}
const { t } = useTranslation()
const attestationProofRequestWaitTimeout = 10000
const [didCompleteAttestationProofRequest, setDidCompleteAttestationProofRequest] = useState<boolean>(false)

const styles = StyleSheet.create({
Expand Down Expand Up @@ -91,23 +90,6 @@ const PersonCredentialLoading: React.FC<PersonProps> = ({ 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) => {
Expand Down

0 comments on commit 80b51c0

Please sign in to comment.