diff --git a/README.md b/README.md index c61e75234..48aabbb25 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This repo is automatically deployed on vercel to [app.watermelon.tools](app.wate All the backend lives as serverless functions under `api`, with the route being the filename. -As we now use OAuth2.0, local development cannot be done. +As we now use OAuth2.0, local development cannot be done on new integrations. All environment vars are on vercel, the committer is responsible for correct deployments. diff --git a/components/loginGrid.tsx b/components/loginGrid.tsx index 13d6c2efe..554f2dd1d 100644 --- a/components/loginGrid.tsx +++ b/components/loginGrid.tsx @@ -150,8 +150,7 @@ function LoginGrid({ userEmail }) { {notionUserData?.user_displayname ? ( diff --git a/pages/api/actions/github.ts b/pages/api/actions/github.ts index b745f361b..df176fb43 100644 --- a/pages/api/actions/github.ts +++ b/pages/api/actions/github.ts @@ -424,10 +424,9 @@ export default async (req, res) => { console.log("comments.data.length", comments.data.length); // Find our bot's comment let botComment = comments.data.find((comment) => { - console.log("comment", comment.id); comment.user.login.includes("watermelon-context"); }); - if (botComment.id) { + if (botComment?.id) { console.log("bcID", botComment.id); // Update the existing comment await octokit.request(