diff --git a/package.json b/package.json index 5108a1b..494099d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.79-rc17", + "version": "0.20.79-rc18", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/services/Frontage/index.ts b/src/services/Frontage/index.ts index 939f3a4..a7bfb9d 100644 --- a/src/services/Frontage/index.ts +++ b/src/services/Frontage/index.ts @@ -45,7 +45,8 @@ export class Frontage { tickers, }: { category: TickersCategories, tickers?: string } & TickersBaseSearchParams) => { const queryParams = new URLSearchParams({ - category: category === 'FAVORITES' && tickers !== undefined ? `tickers=${encodeURIComponent(tickers)}` : `category=${encodeURIComponent(category)}`, + tickers: category === 'FAVORITES' && tickers !== undefined ? encodeURIComponent(tickers) : '', + category: category !== 'FAVORITES' && tickers !== undefined ? encodeURIComponent(category) : '', currentNetwork: currentNetwork !== undefined ? encodeURIComponent(currentNetwork).toUpperCase() : '', targetNetwork: targetNetwork !== undefined ? encodeURIComponent(targetNetwork).toUpperCase() : '', sortBy: sortBy !== undefined ? encodeURIComponent(sortBy) : '',