Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
Signed-off-by: wadeking98 <[email protected]>
  • Loading branch information
wadeking98 committed Oct 26, 2023
1 parent fdb49de commit da52e9f
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions packages/legacy/core/App/screens/ProofRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ProofRequest: React.FC<ProofRequestProps> = ({ navigation, route }) => {
const { start } = useTour()
const screenIsFocused = useIsFocused()

const hasSomeCred = useMemo(() => activeCreds.some(cred => cred.credDefId !== undefined), [activeCreds])
const hasSomeCred = useMemo(() => activeCreds.some((cred) => cred.credDefId !== undefined), [activeCreds])

const styles = StyleSheet.create({
pageContainer: {
Expand Down Expand Up @@ -234,16 +234,16 @@ const ProofRequest: React.FC<ProofRequestProps> = ({ navigation, route }) => {

const selectRetrievedCredentials: AnonCredsCredentialsForProofRequest | undefined = retrievedCredentials
? {
...retrievedCredentials,
attributes: formatCredentials(retrievedCredentials.attributes, credList) as Record<
string,
AnonCredsRequestedAttributeMatch[]
>,
predicates: formatCredentials(retrievedCredentials.predicates, credList) as Record<
string,
AnonCredsRequestedPredicateMatch[]
>,
}
...retrievedCredentials,
attributes: formatCredentials(retrievedCredentials.attributes, credList) as Record<
string,
AnonCredsRequestedAttributeMatch[]
>,
predicates: formatCredentials(retrievedCredentials.predicates, credList) as Record<
string,
AnonCredsRequestedPredicateMatch[]
>,
}
: undefined
setRetrievedCredentials(selectRetrievedCredentials)

Expand Down Expand Up @@ -554,8 +554,8 @@ const ProofRequest: React.FC<ProofRequestProps> = ({ navigation, route }) => {
handleAltCredChange={
item.altCredentials && item.altCredentials.length > 1
? () => {
handleAltCredChange(item.credId, item.altCredentials ?? [item.credId])
}
handleAltCredChange(item.credId, item.altCredentials ?? [item.credId])
}
: undefined
}
proof={true}
Expand Down Expand Up @@ -584,14 +584,16 @@ const ProofRequest: React.FC<ProofRequestProps> = ({ navigation, route }) => {
<View style={styles.pageMargin}>
{!loading && (
<>
{hasSomeCred && (<View
style={{
width: 'auto',
borderWidth: 1,
borderColor: ColorPallet.grayscale.lightGrey,
marginTop: 20,
}}
></View>)}
{hasSomeCred && (
<View
style={{
width: 'auto',
borderWidth: 1,
borderColor: ColorPallet.grayscale.lightGrey,
marginTop: 20,
}}
></View>
)}
<Text
style={{
...TextTheme.title,
Expand Down

0 comments on commit da52e9f

Please sign in to comment.