diff --git a/packages/redux-store/src/slices/credentials/credentialsSelectors.ts b/packages/redux-store/src/slices/credentials/credentialsSelectors.ts index efd33732bc..e2b72d52df 100644 --- a/packages/redux-store/src/slices/credentials/credentialsSelectors.ts +++ b/packages/redux-store/src/slices/credentials/credentialsSelectors.ts @@ -28,7 +28,7 @@ const CredentialsSelectors = { /** * Selector that fetches a CredentialRecord by id from the state. */ - connectionRecordByIdSelector: (credentialRecordId: string) => (state: PartialCredentialState) => + credentialRecordByIdSelector: (credentialRecordId: string) => (state: PartialCredentialState) => state.credentials.credentials.records.find((x) => x.id === credentialRecordId), } diff --git a/packages/redux-store/src/slices/proofs/proofsSelectors.ts b/packages/redux-store/src/slices/proofs/proofsSelectors.ts index 48aa89a809..520da2206e 100644 --- a/packages/redux-store/src/slices/proofs/proofsSelectors.ts +++ b/packages/redux-store/src/slices/proofs/proofsSelectors.ts @@ -28,7 +28,7 @@ const ProofsSelectors = { /** * Selector that fetches a ProofRecord by id from the state. */ - connectionRecordByIdSelector: (proofRecordId: string) => (state: PartialProofsState) => + proofRecordByIdSelector: (proofRecordId: string) => (state: PartialProofsState) => state.proofs.proofs.records.find((x) => x.id === proofRecordId), }