fix perfs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user