feat: Frontage service code review

This commit is contained in:
Mikhail Gladchenko
2024-05-14 08:48:49 +01:00
parent 04d187f03b
commit 2936b19845
2 changed files with 2 additions and 2 deletions

View File

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

View File

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