Skip to content

Commit

Permalink
Fix shoulder guns typologies measures rules
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed May 6, 2024
1 parent a9f4fac commit 892da05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ResultPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function getCategoryFromTypologyAndMeasures (typology: string, gunLength: number
case 'epaule_a_un_coup_par_canon':
if (gunLength > 75 && gunBarrelLength > 40) { return 'C' } else { return 'B' }
case 'epaule_a_levier_sous_garde': case 'epaule_a_verrou': case 'epaule_semi_auto_style_chasse':
if (gunLength > 75 || gunBarrelLength < 40) { return 'B' }
if (gunLength > 75 && gunBarrelLength < 55) { return 'C' }
if (gunLength < 75 || gunBarrelLength < 40) { return 'B' }
if (gunLength > 75 && gunBarrelLength > 55) { return 'C' }
}
}
return resultTree[typology]?.category
Expand Down

0 comments on commit 892da05

Please sign in to comment.