mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-13 21:52:36 +03:00
feat: Frontage service code review
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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) : '',
|
||||
|
||||
Reference in New Issue
Block a user