Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwin24 committed Jul 31, 2024
1 parent a664253 commit 6383086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/listenerCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ const callback = async (data: any) => {
return;
}

const logMessages = data.transaction.meta.logMessages;
if (!logMessages.includes("Instruction: Swap")) return;
const logMessages: string[] = data.transaction.meta.logMessages;
if (!logMessages.some((log) => log.includes("Instruction: Swap"))) return;

const signer = data.transaction.transaction.message.accountKeys.find(
(acc: any) => acc.signer
Expand Down

0 comments on commit 6383086

Please sign in to comment.