|
|
@@ -788,7 +788,7 @@ const getSolutions = async ({ win_min, no_events }) => {
|
|
|
const { minShowAmount } = getSetting();
|
|
|
const solutionsList = Object.values(GAMES.Solutions);
|
|
|
const gamesRelation = getGamesRelation();
|
|
|
- const relationsMap = new Map(gamesRelation.map(item => [item.id, item.rel]));
|
|
|
+ const relationsMap = new Map(gamesRelation.map(item => [item.id, item]));
|
|
|
const solutions = solutionsList.sort((a, b) => b.sol.win_average - a.sol.win_average)
|
|
|
.filter(item => {
|
|
|
const { sol: { win_average } } = item;
|
|
|
@@ -796,10 +796,10 @@ const getSolutions = async ({ win_min, no_events }) => {
|
|
|
})
|
|
|
.map(item => {
|
|
|
const { info: { id } } = item;
|
|
|
- const relation = relationsMap.get(id);
|
|
|
+ const { mk, rel } = relationsMap.get(id);
|
|
|
return {
|
|
|
...item,
|
|
|
- info: { id, ...relation }
|
|
|
+ info: { id, mk, ...rel }
|
|
|
}
|
|
|
});
|
|
|
const relIds = solutions.map(item => item.info.id);
|