Skip to content

Commit 4292f0c

Browse files
committed
Fix waiver webhook
1 parent 354a9f9 commit 4292f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/pages/api/tally/webhook-waiver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const handler: NextApiHandler = async (req, res) => {
77
const body = req.body;
88

99
const field = body.data.fields.find(
10-
({ label, type }) => label === 'question_DB9A6R' && type === 'INPUT_TEXT'
10+
({ key, type }) => key === 'question_DB9A6R' && type === 'INPUT_TEXT'
1111
);
1212
if (field === undefined || field === null || field.value === '') {
1313
return createResponse(

0 commit comments

Comments
 (0)