diff --git a/play.pokemonshowdown.com/src/panel-battle.tsx b/play.pokemonshowdown.com/src/panel-battle.tsx index 15c59f2f7..1861b3b13 100644 --- a/play.pokemonshowdown.com/src/panel-battle.tsx +++ b/play.pokemonshowdown.com/src/panel-battle.tsx @@ -153,15 +153,16 @@ class BattleDiv extends preact.Component<{ room: BattleRoom }> { } function MoveButton(props: { - cmd: string, type: Dex.TypeName, tooltip: string, moveData: { pp: number, maxpp: number, disabled?: boolean }, + cmd: string, type: Dex.TypeName, tooltip: string, moveData: { pp?: number, maxpp?: number, disabled?: boolean }, children: string, }) { + const pp = props.moveData.maxpp ? `${props.moveData.pp!}/${props.moveData.maxpp}` : '–'; return ; } function PokemonButton(props: {