Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Feb 25, 2025
1 parent dcf5d37 commit 6d60ffc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/plugin-twitter/src/actions/spaceJoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ export default {
message: Memory,
_state: State
) => {
if (message.content.source !== "twitter") {
if (message?.content?.source !== "twitter") {
return false;
}

const tweet = message.content.tweet as Tweet;
if (!tweet) {
if (!message?.content?.tweet) {
return false;
}

Expand Down

0 comments on commit 6d60ffc

Please sign in to comment.