Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zachterrell57 committed Oct 15, 2024
1 parent 42a5039 commit 8eeb9e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions app/api/[[...routes]]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,8 @@ app.frame("/request", async (c) => {

if ((await isInvitedToChannel(fid)).success) {
return c.res({
image: (
<SuccessImage
title="Invite Already Sent"
message="Open the notifications tab to accept your invite"
/>
),
intents: [<Button.Reset>Done</Button.Reset>],
image: <SuccessImage title="Invite Already Sent" message="Open the notifications tab to accept your invite" />,
intents: <Button.Reset>Done</Button.Reset>,
});
}

Expand Down
2 changes: 1 addition & 1 deletion data/farcaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
}
Expand Down

0 comments on commit 8eeb9e8

Please sign in to comment.