1
0
Fork 0

style(profile): replace dash placeholders in profile stats table

This commit is contained in:
Jason Fraley 2026-09-07 05:19:50 -04:00
parent da9ea23271
commit a399f3feab

View file

@ -307,7 +307,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
const airKills = scoreboard.airKills ?? 0; const airKills = scoreboard.airKills ?? 0;
const deaths = scoreboard.deaths ?? 0; const deaths = scoreboard.deaths ?? 0;
const totalKills = infantryKills + vehicleKills + armorKills + airKills; const totalKills = infantryKills + vehicleKills + armorKills + airKills;
const kdRatio = deaths > 0 ? (totalKills / deaths).toFixed(2) : totalKills > 0 ? "∞" : "—"; const kdRatio = deaths > 0 ? (totalKills / deaths).toFixed(2) : totalKills > 0 ? "∞" : "-";
const enlistDate = new Date(profile.dossier.enlistmentDate); const enlistDate = new Date(profile.dossier.enlistmentDate);
const now = new Date(); const now = new Date();
@ -562,7 +562,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
Deaths Deaths
</td> </td>
<td className="px-4 py-2 text-right font-mono">{deaths.toLocaleString()}</td> <td className="px-4 py-2 text-right font-mono">{deaths.toLocaleString()}</td>
<td className="px-4 py-2 text-right font-mono text-muted-foreground">—</td> <td className="px-4 py-2 text-right font-mono text-muted-foreground">-</td>
</tr> </tr>
<tr className="bg-muted/30"> <tr className="bg-muted/30">
<td className="px-4 py-2.5 flex items-center gap-2 font-semibold"> <td className="px-4 py-2.5 flex items-center gap-2 font-semibold">