From 8eeb9e8fc8989bfda2003dfc6de820b99bae19e4 Mon Sep 17 00:00:00 2001 From: zachterrell57 Date: Tue, 15 Oct 2024 10:55:40 -0700 Subject: [PATCH] fix: formatting --- app/api/[[...routes]]/route.tsx | 9 ++------- data/farcaster.ts | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/api/[[...routes]]/route.tsx b/app/api/[[...routes]]/route.tsx index b8bd4a6..8f7cccb 100644 --- a/app/api/[[...routes]]/route.tsx +++ b/app/api/[[...routes]]/route.tsx @@ -111,13 +111,8 @@ app.frame("/request", async (c) => { if ((await isInvitedToChannel(fid)).success) { return c.res({ - image: ( - - ), - intents: [Done], + image: , + intents: Done, }); } diff --git a/data/farcaster.ts b/data/farcaster.ts index d3bb59c..7e6383b 100644 --- a/data/farcaster.ts +++ b/data/farcaster.ts @@ -43,7 +43,7 @@ export async function getUser(fid: number, viewerFid?: number) { } export async function isInvitedToChannel(fid: number) { - const { invites } = await neynarClient.fetchChannelInvites({channelId: env.CHANNEL_ID, invitedFid: fid}); + const { invites } = await neynarClient.fetchChannelInvites({ channelId: env.CHANNEL_ID, invitedFid: fid }); return { success: invites.some((invite) => invite.invited.fid === fid) }; }