diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-31 10:59:47 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-31 10:59:47 +0300 |
| commit | 4f56d18a94b8960c31da204b6c8b82ab002201e3 (patch) | |
| tree | 80e6e94400d8ac675b4303ad5d3b6e381ee570fb /frontend/src/pages/Profile.tsx | |
| parent | backend: fix all rankings and placements, use sql funcs (diff) | |
| download | lphub-4f56d18a94b8960c31da204b6c8b82ab002201e3.tar.gz lphub-4f56d18a94b8960c31da204b6c8b82ab002201e3.tar.bz2 lphub-4f56d18a94b8960c31da204b6c8b82ab002201e3.zip | |
frontend: show wr delta in category scores as well
Diffstat (limited to 'frontend/src/pages/Profile.tsx')
| -rw-r--r-- | frontend/src/pages/Profile.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx index cb89a5e..5c5676e 100644 --- a/frontend/src/pages/Profile.tsx +++ b/frontend/src/pages/Profile.tsx | |||
| @@ -313,7 +313,7 @@ const Profile: React.FC<ProfileProps> = ({ profile, token, gameData, onDeleteRec | |||
| 313 | {i !== 0 ? <hr style={{ gridColumn: "1 / span 8" }} /> : ""} | 313 | {i !== 0 ? <hr style={{ gridColumn: "1 / span 8" }} /> : ""} |
| 314 | <Link to={`/maps/${r.id}`}><span>{r.name}</span></Link> | 314 | <Link to={`/maps/${r.id}`}><span>{r.name}</span></Link> |
| 315 | <span style={{ display: "grid" }}>{record!.scores[i].score_count}</span> | 315 | <span style={{ display: "grid" }}>{record!.scores[i].score_count}</span> |
| 316 | <span style={{ display: "grid" }}>{record!.scores[i].score_count - record!.map_wr_count}</span> | 316 | <span style={{ display: "grid" }}>{record!.scores[i].score_count - record!.map_wr_count > 0 ? `+${record!.scores[i].score_count - record!.map_wr_count}` : record!.scores[i].score_count - record!.map_wr_count}</span> |
| 317 | <span style={{ display: "grid" }}>{ticks_to_time(record!.scores[i].score_time)}</span> | 317 | <span style={{ display: "grid" }}>{ticks_to_time(record!.scores[i].score_time)}</span> |
| 318 | <span> </span> | 318 | <span> </span> |
| 319 | {i === 0 ? <span>#{record!.placement}</span> : <span> </span>} | 319 | {i === 0 ? <span>#{record!.placement}</span> : <span> </span>} |