Skip to content
Snippets Groups Projects
Commit 134b004a authored by Matt Kirby's avatar Matt Kirby
Browse files

Merge branch 'FE-questions-and-posts' of...

Merge branch 'FE-questions-and-posts' of https://gitlab.surrey.ac.uk/com3014-coursework/daily-thought-app into FE-questions-and-posts
parents 199cceef 3c27b11b
No related branches found
No related tags found
1 merge request!24Fe questions and posts (This one is big)
...@@ -30,7 +30,7 @@ const QuestionSubmit: FC<PropsWithChildren<QuestionSubmitProps>> = ({ ...@@ -30,7 +30,7 @@ const QuestionSubmit: FC<PropsWithChildren<QuestionSubmitProps>> = ({
const handleSubmit = async (e: FormEvent) => { const handleSubmit = async (e: FormEvent) => {
e.preventDefault(); e.preventDefault();
if (!dailyResponse) { if (!dailyResponse) {
setError("Can't submit an empty response!"); setError("Can't post an empty Daily!");
} else { } else {
const endpoint = `${process.env.NEXT_PUBLIC_FEED_SERVICE_URL}daily/create`; const endpoint = `${process.env.NEXT_PUBLIC_FEED_SERVICE_URL}daily/create`;
const JsonData = JSON.stringify({ const JsonData = JSON.stringify({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment