From 0d631cd120fba5768e08f8635af45c603336dbda Mon Sep 17 00:00:00 2001 From: Chaitanya Potti Date: Thu, 17 Oct 2024 16:59:43 +0800 Subject: [PATCH] remove unnecessary await for external adapters --- demo/vue-app-new/src/MainView.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/demo/vue-app-new/src/MainView.vue b/demo/vue-app-new/src/MainView.vue index 4e4055fdd..22ba05044 100644 --- a/demo/vue-app-new/src/MainView.vue +++ b/demo/vue-app-new/src/MainView.vue @@ -164,7 +164,7 @@ const modalParams = computed(() => { return modalConfig; }); -const getExternalAdapterByName = async (name: string): Promise[]> => { +const getExternalAdapterByName = (name: string): IAdapter[] => { switch (name) { case "coinbase": return [new CoinbaseAdapter()]; @@ -220,8 +220,7 @@ watch( async () => { let adapters: IAdapter[] = []; for (let i = 0; i <= formData.adapters.length; i += 1) { - // eslint-disable-next-line no-await-in-loop - adapters = adapters.concat(await getExternalAdapterByName(formData.adapters[i])); + adapters = adapters.concat(getExternalAdapterByName(formData.adapters[i])); } externalAdapters.value = adapters; }