feat: types update

This commit is contained in:
Mikhail Gladchenko
2024-03-29 12:29:24 +00:00
parent 252b7fc341
commit ba4d7d1137
3 changed files with 7 additions and 7 deletions

View File

@@ -23,8 +23,8 @@ export class Frontage {
}: { searchValue: string } & TickersBaseSearchParams) => {
const queryParams = [
`searchValue=${encodeURIComponent(searchValue)}`,
currentNetwork !== undefined ? `&currentNetwork=${encodeURIComponent(currentNetwork)}` : '',
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork)}` : '',
currentNetwork !== undefined ? `&currentNetwork=${encodeURIComponent(currentNetwork).toUpperCase()}` : '',
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork).toUpperCase()}` : '',
sortBy !== undefined ? `&sortBy=${encodeURIComponent(sortBy)}` : '',
sortType !== undefined ? `&sortType=${encodeURIComponent(sortType)}` : '',
offset !== undefined ? `&offset=${offset}` : '',
@@ -48,8 +48,8 @@ export class Frontage {
}: { category: TickersCategories } & TickersBaseSearchParams) => {
const queryParams = [
`category=${encodeURIComponent(category)}`,
currentNetwork !== undefined ? `&currentNetwork=${encodeURIComponent(currentNetwork)}` : '',
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork)}` : '',
currentNetwork !== undefined ? `&currentNetwork=${encodeURIComponent(currentNetwork).toUpperCase()}` : '',
targetNetwork !== undefined ? `&targetNetwork=${encodeURIComponent(targetNetwork).toUpperCase()}` : '',
sortBy !== undefined ? `&sortBy=${encodeURIComponent(sortBy)}` : '',
sortType !== undefined ? `&sortType=${encodeURIComponent(sortType)}` : '',
offset !== undefined ? `&offset=${offset}` : '',