fix perfs

This commit is contained in:
2023-09-15 19:21:36 +02:00
parent 7d946f49c4
commit d4ded694d6
4 changed files with 32 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ export type HistoryQuartils = {
export const getHistory = async (regionId: number, tyeId: number): Promise<MarketOrderHistory[]> => (await esiAxiosInstance.get(`/markets/${regionId}/history/`, { params: { type_id: tyeId } })).data;
export const getHistoryQuartils = async (history: MarketOrderHistory[]): Promise<HistoryQuartils> => {
export const getHistoryQuartils = (history: MarketOrderHistory[]): HistoryQuartils => {
const volumes = history
.flatMap(h => {
const volume = h.volume;