We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 422054d commit 343becdCopy full SHA for 343becd
src/tokens/aoTokens/ao.ts
@@ -618,12 +618,12 @@ export async function checkTransferError(process: string, transferId: string): P
618
});
619
620
try {
621
- return Promise.race([
+ return await Promise.race([
622
checkMessageResultForError(process, transferId).catch(() => null),
623
checkMessageGraphqlResultForError(transferId).catch(() => null),
624
timeout,
625
]);
626
} finally {
627
- clearTimeout(timeoutId);
+ if (timeoutId) clearTimeout(timeoutId);
628
}
629
0 commit comments