mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Simplifying comparison (#1758)
This commit is contained in:
parent
f53b77fc65
commit
0df5440b06
@ -192,7 +192,7 @@ export async function getAssetsFromDidList(
|
|||||||
cancelToken: CancelToken
|
cancelToken: CancelToken
|
||||||
): Promise<PagedAssets> {
|
): Promise<PagedAssets> {
|
||||||
try {
|
try {
|
||||||
if (!(didList.length > 0)) return
|
if (!didList.length) return
|
||||||
|
|
||||||
const baseParams = {
|
const baseParams = {
|
||||||
chainIds,
|
chainIds,
|
||||||
@ -214,7 +214,7 @@ export async function getAssetsFromDtList(
|
|||||||
cancelToken: CancelToken
|
cancelToken: CancelToken
|
||||||
): Promise<Asset[]> {
|
): Promise<Asset[]> {
|
||||||
try {
|
try {
|
||||||
if (!(dtList.length > 0)) return
|
if (!dtList.length) return
|
||||||
|
|
||||||
const baseParams = {
|
const baseParams = {
|
||||||
chainIds,
|
chainIds,
|
||||||
|
Loading…
Reference in New Issue
Block a user