Small changees
This commit is contained in:
@@ -33,6 +33,9 @@ export function WarlordsWeaponsBar({ stats }: { stats: NonNullable<NonNullStats[
|
||||
<span className="font-bold">{"Total Weapons Repaired: "}</span>
|
||||
<span>{formatNumber(stats.repaired)}</span>
|
||||
</p>
|
||||
{stats.repaired > 0 ?
|
||||
(
|
||||
<>
|
||||
<div className="flex overflow-hidden mt-2 mb-4 rounded-md">
|
||||
{repaired.map(({ repaired, num }) => {
|
||||
const percent = num / stats.repaired
|
||||
@@ -56,5 +59,8 @@ export function WarlordsWeaponsBar({ stats }: { stats: NonNullable<NonNullStats[
|
||||
</div>
|
||||
<Tooltip id="warlords-weapons-bar" position={pos} />
|
||||
</>
|
||||
) :
|
||||
<p>This person has no Repaired weapons.</p>}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -26,6 +26,8 @@ export function getUHCBestMode(stats: NonNullable<NonNullStats["UHC"]>) {
|
||||
}
|
||||
}
|
||||
|
||||
if (maxScore === 0) return null
|
||||
|
||||
return bestMode.id === "" ? "teams" : bestMode.id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user