Skip to content

Commit

Permalink
fix: check for prop in intent (#444)
Browse files Browse the repository at this point in the history
This is quite a mysterious bug since it cannot be reproduced locally,
and is only reproduced on Vercel/Next.js Platforms.
I assume that some sort of build caching is being made and previous
fixes didn't come through, thus trying now with this one.
  • Loading branch information
dalechyn authored Jul 25, 2024
1 parent 506d281 commit 9054431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/getButtonValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function getButtonValues(

const buttonValues: FrameButtonValue[] = []
for (const intent of intents) {
if (!intent) continue
if (!intent || !('props' in intent)) continue
const { property } = intent.props
if (!(property as string).match(/^fc:frame:button:(1|2|3|4)$/)) continue
buttonValues.push(intent.props['data-value'])
Expand Down

0 comments on commit 9054431

Please sign in to comment.