Skip to content

Commit

Permalink
👻 Change assessed logic for archetypes to handle zero required case
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 committed Feb 12, 2024
1 parent e18a654 commit ff944e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assessment/archetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func (r *ArchetypeResolver) Confidence() (confidence int) {

// Assessed returns whether the archetype has been fully assessed.
func (r *ArchetypeResolver) Assessed() (assessed bool) {
if r.questionnaire == nil {
return
if r.questionnaire == nil || len(r.RequiredAssessments()) == 0 {
return false
}
assessed = r.questionnaire.Assessed(r.RequiredAssessments())
return
Expand Down

0 comments on commit ff944e7

Please sign in to comment.