Skip to content

Commit

Permalink
wip: log the response
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbira committed Sep 4, 2024
1 parent c7743a7 commit 0e55d3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/forms/FormWithAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function FormWithAction({
startTransition(async () => {
try {
const res = await action(prevState, formData)
console.log(res)
if (res.status === "success") {
onSuccess?.(res)
}
Expand Down

0 comments on commit 0e55d3a

Please sign in to comment.