feat: always show score alg desc under profile alg desc (#1319)

* feat: always display score alg description

* fix: typo
This commit is contained in:
nairobi
2025-07-11 13:50:36 +01:00
committed by GitHub
parent 131f4fe89f
commit 76d02e8fb4
21 changed files with 62 additions and 21 deletions
@@ -51,17 +51,25 @@ export default function UGPTRatingsTable({ ugs }: { ugs: UserGameStats }) {
tooltipContent={
<div>
{gptConfig.profileRatingAlgs[k].description}
{k in gptConfig.scoreRatingAlgs && (
{(gptConfig.profileRatingAlgs[k].associatedScoreAlgs ?? [])
.length > 0 && (
<>
<Divider />(
{FormatGPTScoreRatingName(
ugs.game,
ugs.playtype,
k
)}
: {gptConfig.scoreRatingAlgs[k].description})
<Divider />
</>
)}
{gptConfig.profileRatingAlgs[k].associatedScoreAlgs?.map(
(alg) => (
<div>
(
{FormatGPTScoreRatingName(
ugs.game,
ugs.playtype,
alg
)}
: {gptConfig.scoreRatingAlgs[alg].description})
</div>
)
)}
</div>
}
wide