Skip to content

Commit

Permalink
chore(listenForStakingEvents): make short msg optional
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Aug 9, 2024
1 parent 0ad70d5 commit 3c3b35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export async function listenStakeEvents(
} catch (err) {
const err_ = err as unknown as { shortMessage: string };
if (
err_.shortMessage.includes("Already voted for this validator")
err_.shortMessage?.includes("Already voted for this validator")
) {
return null;
}
Expand Down

0 comments on commit 3c3b35e

Please sign in to comment.