From 085ef8abe5e900e23916aec02c19b96ea0ccda5f Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 29 Oct 2022 10:44:35 +0300 Subject: [PATCH] Run checks on PR made (#1063) * Run checks on PR made * Prettify * Refine criteria * Bruh --- .github/workflows/main.yml | 1 + app/routes/analyzer.tsx | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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({