Skip to content

Commit

Permalink
Refactor response logic in App component
Browse files Browse the repository at this point in the history
  • Loading branch information
insulationman committed Mar 13, 2024
1 parent c115555 commit 1a47146
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function App() {
if (message.toLowerCase().includes("glenn")) {
return "Ja, det är jag!";
}
if (message.toLowerCase().endsWith("?")) {
return "Ingen j$*!a aning!";
if (message.toLowerCase().includes("vem")) {
return "Janne på varvet!";
}
if (message.toLowerCase().includes("kaffe")) {
return "Kaffe är gott!";
Expand All @@ -36,8 +36,8 @@ function App() {
if (message.toLowerCase().includes("vin")) {
return "Vin är gott!";
}
if (message.toLowerCase().includes("vem")) {
return "Janne på varvet!";
if (message.toLowerCase().endsWith("?")) {
return "Ingen aning!";
}
//randomize
return createDefaultResponse();
Expand Down

0 comments on commit 1a47146

Please sign in to comment.