diff --git a/src/market/api/api.ts b/src/market/api/api.ts index 88b0d8a044..ded5792e29 100644 --- a/src/market/api/api.ts +++ b/src/market/api/api.ts @@ -45,11 +45,11 @@ async function setSupportedCoinsList(): Promise { const matchSearch = (search: string) => - (currency: MarketCoin): boolean => { - if (!search) return false; - const match = `${currency.symbol}|${currency.name}`; - return match.toLowerCase().includes(search.toLowerCase()); - }; + (currency: MarketCoin): boolean => { + if (!search) return false; + const match = `${currency.symbol}|${currency.name}`; + return match.toLowerCase().includes(search.toLowerCase()); + }; function distributedCopy(items: number[], n: number): number[] { const elements = [items[0]]; @@ -122,7 +122,8 @@ async function listPaginated({ const url = `${ROOT_PATH}/coins/markets?vs_currency=${counterCurrency}&order=${orderBy}_${order}&per_page=${limit}` + - `&sparkline=${sparkline ? "true" : "false" + `&sparkline=${ + sparkline ? "true" : "false" }&price_change_percentage=${range}` + `${ids.length > 0 ? `&page=1&&ids=${ids.toString()}` : `&page=${page}`}`; @@ -180,8 +181,8 @@ async function listPaginated({ atlDate: currency.atl_date, sparklineIn7d: currency?.sparkline_in_7d?.price ? sparklineAsSvgData( - distributedCopy(currency.sparkline_in_7d.price, 6 * 7) - ) // keep 6 points per day + distributedCopy(currency.sparkline_in_7d.price, 6 * 7) + ) // keep 6 points per day : null, chartData: [], })