mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
Fix team without powers breaking autoseed
This commit is contained in:
@@ -119,6 +119,8 @@ export default function TournamentSeedsPage() {
|
||||
.map((m) => data.powers[m.userId]?.power)
|
||||
.filter(Boolean);
|
||||
|
||||
if (powers.length === 0) return 0;
|
||||
|
||||
return powers.reduce((acc, cur) => acc + cur, 0) / powers.length;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user