dont show pp label if no pp
Some checks failed
deploy / deploy (push) Has been cancelled

This commit is contained in:
Lee 2023-10-20 10:51:06 +01:00
parent ccab42390f
commit d7bb055e7d

@ -229,10 +229,12 @@ export default function Player({ params }: { params: { id: string } }) {
</div> </div>
<div className="flex flex-col items-end p-1"> <div className="flex flex-col items-end p-1">
<div className="flex flex-row gap-2"> <div className="flex flex-row gap-2">
<ScoreStatLabel {score.pp > 0 && (
value={formatNumber(score.pp.toFixed(2)) + "pp"} <ScoreStatLabel
className="bg-blue-500" value={formatNumber(score.pp.toFixed(2)) + "pp"}
/> className="bg-blue-500"
/>
)}
<ScoreStatLabel <ScoreStatLabel
value={score.modifiedScore.toFixed(0)} value={score.modifiedScore.toFixed(0)}
/> />