Skip to content

Commit

Permalink
docs: Update tutorial.md (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngbrown committed Feb 14, 2024
1 parent 56b159f commit a70aa89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export async function action({ request }: ActionFunctionArgs) {
return submission.reply();
}

const message = await sendMessage(result.data);
const message = await sendMessage(submission.value);

// Return a form error if the message is not sent
if (!message.sent) {
Expand All @@ -238,7 +238,7 @@ export async function action({ request }: ActionFunctionArgs) {
});
}

return await sendMessage(submission.value);
return redirect('/messages');
}
```

Expand Down Expand Up @@ -497,7 +497,7 @@ export async function action({ request }: ActionFunctionArgs) {
});
}

return await sendMessage(submission.value);
return redirect('/messages');
}

export default function ContactUs() {
Expand Down

0 comments on commit a70aa89

Please sign in to comment.