feat: Frontage service code review

This commit is contained in:
Mikhail Gladchenko
2024-05-13 14:48:23 +01:00
parent d676d59f22
commit 04d187f03b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.79-rc18",
"version": "0.20.79-rc19",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -46,7 +46,7 @@ export class Frontage {
}: { category: TickersCategories, tickers?: string } & TickersBaseSearchParams) => {
const queryParams = new URLSearchParams({
tickers: category === 'FAVORITES' && tickers !== undefined ? encodeURIComponent(tickers) : '',
category: category !== 'FAVORITES' && tickers !== undefined ? encodeURIComponent(category) : '',
category: category !== 'FAVORITES' ? encodeURIComponent(category) : '',
currentNetwork: currentNetwork !== undefined ? encodeURIComponent(currentNetwork).toUpperCase() : '',
targetNetwork: targetNetwork !== undefined ? encodeURIComponent(targetNetwork).toUpperCase() : '',
sortBy: sortBy !== undefined ? encodeURIComponent(sortBy) : '',