diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf1f0794a..613c42d13 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: Tests and checks on push on: + pull_request: push: branches: - rewrite diff --git a/app/routes/analyzer.tsx b/app/routes/analyzer.tsx index 47d77b2fe..050e021aa 100644 --- a/app/routes/analyzer.tsx +++ b/app/routes/analyzer.tsx @@ -896,7 +896,10 @@ function ConsumptionTable({ subWeaponId: SubWeaponId; }) { const { t } = useTranslation(["analyzer", "weapons"]); - const maxSubsToUse = subWeaponId === TORPEDO_ID ? 1 : Math.max(...options.map((opt) => opt.subsUsed)); + const maxSubsToUse = + subWeaponId === TORPEDO_ID + ? 1 + : Math.max(...options.map((opt) => opt.subsUsed)); const types = Array.from(new Set(options.map((opt) => opt.type))); return ( @@ -927,7 +930,7 @@ function ConsumptionTable({