Skip to content

Commit

Permalink
fix: await the unawaited (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt authored Sep 29, 2023
1 parent 724f5a1 commit cce2389
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const BridgeForm = (): JSX.Element => {
const apiPromise = data.provider.getApiPromise(formData[BRIDGE_FROM_FIELD] as string);

apiPromise.setSigner(signer);
adapter.setApi(apiPromise);
await adapter.setApi(apiPromise);

const transferCurrency = getCurrencyFromTicker(currentToken.value);
const transferAmount = newMonetaryAmount(form.values[BRIDGE_AMOUNT_FIELD] || 0, transferCurrency, true);
Expand Down

2 comments on commit cce2389

@vercel
Copy link

@vercel vercel bot commented on cce2389 Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on cce2389 Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.