Skip to content

Commit

Permalink
Add artificial delay to search
Browse files Browse the repository at this point in the history
  • Loading branch information
xzilja committed Aug 22, 2023
1 parent 781a92f commit c08006e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/controllers/ApiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export const ApiController = {
search
}
})
await Promise.all(data.map(({ image_id }) => ApiController._fetchWalletImage(image_id)))
await Promise.all([
...data.map(({ image_id }) => ApiController._fetchWalletImage(image_id)),
CoreHelperUtil.wait(300)
])
state.search = data
}
}

0 comments on commit c08006e

Please sign in to comment.