Skip to content

Commit

Permalink
#1410 Ignore current share in case share count extra data
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jun 28, 2020
1 parent e0e73b4 commit 8a2ea5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ trait CaseRenderer {
caseSteps.origin.name.map(org => JsBoolean(org == authContext.organisation))

def shareCountStats(caseSteps: CaseSteps): Traversal[JsValue, JsValue] =
caseSteps.organisations.count.map(JsNumber.apply(_))
caseSteps.organisations.count.map(c => JsNumber.apply(c - 1))

def caseStatsRenderer(extraData: Set[String])(
implicit authContext: AuthContext,
Expand Down

0 comments on commit 8a2ea5f

Please sign in to comment.