mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-14 11:25:37 +00:00
strictNullChecks
This commit is contained in:
@@ -253,7 +253,7 @@ export class ControlPanel extends LitElement implements Layer {
|
||||
<label class="block text-white mb-1" translate="no"
|
||||
>Attack Ratio: ${(this.attackRatio * 100).toFixed(0)}%
|
||||
(${renderTroops(
|
||||
this.game?.myPlayer()?.troops() * this.attackRatio,
|
||||
(this.game?.myPlayer()?.troops() ?? 0) * this.attackRatio,
|
||||
)})</label
|
||||
>
|
||||
<div class="relative h-8">
|
||||
|
||||
Reference in New Issue
Block a user