feat: ratings stats

This commit is contained in:
TrèsAbhi committed 2024-03-20 20:40:01 -05:00
1 parent 5f28b541e3
commit ca3a1fbe3f
12 files changed
+117 -78

No files matched your search

+6
View File
@@ -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>