From b951a20a643f4257e1b127eda7856bf34e00c28c Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sun, 12 Nov 2023 02:13:43 -0500 Subject: [PATCH] Fix missing optional --- src/providers/twitter/conversation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/twitter/conversation.ts b/src/providers/twitter/conversation.ts index 9abf022..2f78864 100644 --- a/src/providers/twitter/conversation.ts +++ b/src/providers/twitter/conversation.ts @@ -306,7 +306,7 @@ export const constructTwitterThread = async ( ) { console.log('tweet is private'); return { post: null, thread: null, author: null, code: 401 }; - } else if (!response.data) { + } else if (!response?.data) { return { post: null, thread: null, author: null, code: 404 }; } }