Skip to content

submission type has no value prop in the types #720

Closed Answered by mnlfischer
mnlfischer asked this question in Q&A
Discussion options

You must be logged in to vote

I guess I was looking on some old stuff.
When I use

 if (submission.status !== 'success') {
    return json(submission.reply(), {
      // You can also use the status to determine the HTTP status code
      status: submission.status === 'error' ? 400 : 200,
    });
  }

is works as expected.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mnlfischer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant