From bffcf1f17852d691f828cf1906421596d64fc381 Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Thu, 8 Jun 2023 12:12:30 +0200 Subject: [PATCH] fix images staying after switching roster --- src/Roster.jsx | 2 +- src/Weapons.jsx | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Roster.jsx b/src/Roster.jsx index df7380c..3995d82 100644 --- a/src/Roster.jsx +++ b/src/Roster.jsx @@ -48,7 +48,7 @@ const Force = ({ force, onePerPage }) => { > {units.map((unit, index) => ( `${parseInt(ws, 10) + 1}+`); } @@ -399,6 +407,9 @@ const Weapon = ({ if (bs.every((b) => b === bs[0])) { bs = bs[0]; } + if (type.includes("Torrent")) { + bs = "N/A"; + } if (ws.every((w) => w === ws[0])) { ws = ws[0]; }