Skip to content

Commit

Permalink
fix: Added await to /swaps/link
Browse files Browse the repository at this point in the history
  • Loading branch information
sbp-rib committed Jan 26, 2021
1 parent e089ad6 commit 196b5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/swap/createSwap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const createSwap = async <M extends SkybridgeMode>(
): Promise<CreateResult<'swap', M>> => {
const result = await create({ ...params, resource: 'swap' });

(async () => {
await (async () => {
try {
if (!params.context.affiliateApi) {
logger('No affiliate program API present in context.');
Expand Down

0 comments on commit 196b5fa

Please sign in to comment.