|
|
@@ -400,13 +400,15 @@ const solutionsCleanup = () => {
|
|
|
}
|
|
|
|
|
|
const getTotalProfit = (sid1, sid2, gold_side_jc) => {
|
|
|
- const sol1 = GAMES.Solutions[sid1]?.sol;
|
|
|
- const sol2 = GAMES.Solutions[sid2]?.sol;
|
|
|
+ const preSolution = GAMES.Solutions[sid1];
|
|
|
+ const subSolution = GAMES.Solutions[sid2];
|
|
|
+ const sol1 = preSolution?.sol;
|
|
|
+ const sol2 = subSolution?.sol;
|
|
|
if (!sol1 || !sol2 || !gold_side_jc) {
|
|
|
return {};
|
|
|
}
|
|
|
const profit = calcTotalProfit(sol1, sol2, gold_side_jc);
|
|
|
- return { profit, sol1, sol2 };
|
|
|
+ return { profit, preSolution, subSolution };
|
|
|
}
|
|
|
|
|
|
const getSetting = async () => {
|