mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-25 11:54:42 -05:00
Run checks on PR made (#1063)
* Run checks on PR made * Prettify * Refine criteria * Bruh
This commit is contained in:
parent
327df35380
commit
085ef8abe5
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
|
@ -1,6 +1,7 @@
|
|||
name: Tests and checks on push
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- rewrite
|
||||
|
|
|
|||
|
|
@ -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({
|
|||
</table>
|
||||
<div className="analyzer__consumption-table-explanation">
|
||||
{t("analyzer:consumptionExplanation", { maxSubsToUse })}
|
||||
{subWeaponId === TORPEDO_ID && <>{" "}{t("analyzer:torpedoExplanation")}</>}
|
||||
{subWeaponId === TORPEDO_ID && <> {t("analyzer:torpedoExplanation")}</>}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user