diff --git a/src/lib/components/admin/Evaluations.svelte b/src/lib/components/admin/Evaluations.svelte index 88afc623b..1d7019d32 100644 --- a/src/lib/components/admin/Evaluations.svelte +++ b/src/lib/components/admin/Evaluations.svelte @@ -99,8 +99,8 @@ ...model, rating: stats ? Math.round(stats.rating) : '-', stats: { + count: stats ? stats.won + stats.draw + stats.lost : 0, won: stats ? stats.won.toString() : '-', - draw: stats ? stats.draw.toString() : '-', lost: stats ? stats.lost.toString() : '-' } }; @@ -157,21 +157,17 @@ {$i18n.t('Rating')} - + {$i18n.t('Won')} - - - {$i18n.t('Draw')} - - + {$i18n.t('Lost')} {#each rankedModels as model, modelIdx (model.id)} - +
{model?.rating !== '-' ? modelIdx + 1 : '-'} @@ -197,15 +193,29 @@ - {model.stats.won} - - - - {model.stats.draw} +
+ {#if model.stats.won === '-'} + - + {:else} + + {model.stats.won} + {/if} +
- {model.stats.lost} +
+ {#if model.stats.lost === '-'} + - + {:else} + + {model.stats.lost} + {/if} +
{/each}