Skip to content

Commit

Permalink
Merge pull request #100 from sopra-fs23-group-15/marionWeek4
Browse files Browse the repository at this point in the history
last attempt to fix error
  • Loading branch information
marion-an authored Apr 27, 2023
2 parents c8448dd + 380d4f6 commit af6c1c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/views/Games.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const Games = () => {
else{submitPrompt()}
}
const submitPrompt = async () => {
if (keywords !== ""){
console.log("user prompt is: " + prompt);
try {
const requestBody = JSON.stringify({
Expand All @@ -93,7 +94,7 @@ const Games = () => {
alert(
"Something went wrong while fetching the users! See the console for details."
);
}
}}
};

return (
Expand Down

0 comments on commit af6c1c6

Please sign in to comment.