mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-17 21:19:50 +01:00
Implement planet exclusion from totals calculations
This commit is contained in:
@@ -40,9 +40,10 @@ const displayValue = (valueInMillions: number): string =>
|
||||
: `${valueInMillions.toFixed(2)} M`;
|
||||
|
||||
export const Summary = ({ characters }: { characters: AccessToken[] }) => {
|
||||
const { piPrices, alertMode } = useContext(SessionContext);
|
||||
const { piPrices } = useContext(SessionContext);
|
||||
const exports = characters.flatMap((char) => {
|
||||
return char.planets.flatMap((planet) => {
|
||||
return char.planets.filter(p => !char.planetConfig.some(c => c.planetId == p.planet_id && c.excludeFromTotals))
|
||||
.flatMap((planet) => {
|
||||
const { localExports } = planetCalculations(planet);
|
||||
return localExports;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user