File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
extension/src/content-script/components/modals Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ export const PaymentModal = ({
84
84
try {
85
85
const tweetIdBigInt = BigInt ( tweetId ) ;
86
86
87
- // Find the tweet element and get its text
88
- const tweetElement = document . querySelector ( `article[data-testid="tweet"]` )
87
+ // Find the specific tweet by ID
88
+ const tweetElement = document . querySelector ( `article[data-testid="tweet"] a[href*="/ ${ tweetId } "]` ) ?. closest ( 'article[data-testid="tweet"]' )
89
89
const tweetTextElement = tweetElement ?. querySelector ( SELECTORS . TWEET_TEXT )
90
90
const tweetText = tweetTextElement ?. textContent || ''
91
91
@@ -98,7 +98,6 @@ export const PaymentModal = ({
98
98
return undefined
99
99
}
100
100
101
- console . log ( 'tweetText' , cleanPromptText ( tweetText ) )
102
101
return [
103
102
tokenContract . populate ( "approve" , [
104
103
agentContract . address ,
You can’t perform that action at this time.
0 commit comments