Commit be22b76e authored by Sietse Ringers's avatar Sietse Ringers
Browse files

fix: mistake in disclosure candidate computation

parent fc7bade6
......@@ -574,9 +574,9 @@ func (client *Client) credCandidates(base *irma.BaseRequest, con irma.AttributeC
satisfies, usable := client.satisfiesCon(base, attrlist, con)
if satisfies { // add it to the list, even if they are unusable
c = append(c, &credCandidate{Type: credtype, Hash: attrlist.Hash()})
}
if usable { // having one usable credential will do
haveUsableCred = true
if usable { // having one usable credential will do
haveUsableCred = true
}
}
}
if !haveUsableCred {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment