Updated bestmodes
This commit is contained in:
@@ -92,6 +92,8 @@ export function getMegaWallsMostPlayedMode(stats: NonNullable<NonNullStats["Mega
|
||||
}
|
||||
]
|
||||
|
||||
if (modes.map(m => m.games).reduce((a, b) => a + b) === 0) return null
|
||||
|
||||
const mostPlayed = modes.reduce((max, current) => current.games > max.games ? current : max)
|
||||
|
||||
return mostPlayed.id
|
||||
|
||||
Reference in New Issue
Block a user