Skip to content

Commit 65a5071

Browse files
Merge pull request #1095 from wanderwallet/fix/transfer-error-check
fix: transfer error check
2 parents 422054d + 343becd commit 65a5071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tokens/aoTokens/ao.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,12 +618,12 @@ export async function checkTransferError(process: string, transferId: string): P
618618
});
619619

620620
try {
621-
return Promise.race([
621+
return await Promise.race([
622622
checkMessageResultForError(process, transferId).catch(() => null),
623623
checkMessageGraphqlResultForError(transferId).catch(() => null),
624624
timeout,
625625
]);
626626
} finally {
627-
clearTimeout(timeoutId);
627+
if (timeoutId) clearTimeout(timeoutId);
628628
}
629629
}

0 commit comments

Comments
 (0)