Skip to content

Commit

Permalink
remove unnecessary await for external adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Oct 17, 2024
1 parent 49f2197 commit 0d631cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demo/vue-app-new/src/MainView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const modalParams = computed(() => {
return modalConfig;
});
const getExternalAdapterByName = async (name: string): Promise<IAdapter<unknown>[]> => {
const getExternalAdapterByName = (name: string): IAdapter<unknown>[] => {
switch (name) {
case "coinbase":
return [new CoinbaseAdapter()];
Expand Down Expand Up @@ -220,8 +220,7 @@ watch(
async () => {
let adapters: IAdapter<unknown>[] = [];
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;
}
Expand Down

0 comments on commit 0d631cd

Please sign in to comment.