mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: ratings stats
This commit is contained in:
1 parent
5f28b541e3
commit
ca3a1fbe3f
12 files changed
+117
-78
No files matched your search
@@ -23,6 +23,12 @@ export default function GenericAllStats({
|
||||
const killsToDeathRatio =
|
||||
stats.frags / (stats.battles - stats.survived_battles);
|
||||
|
||||
if (supplementaryStats && supplementaryStats.type !== 'random') {
|
||||
throw new Error(
|
||||
'Generic all stats does not support random supplementary stats',
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Root>
|
||||
<Row>
|
||||
|
||||
Reference in new issue
Block a user