Skip to content

Commit

Permalink
Corrigindo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jaovitu committed Aug 23, 2022
1 parent a7affe0 commit f8b7102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const wins = {
app.post('/message', (request, response) => {
const { Body: userChoice } = request.body;

if ( !(options.includes(userChoice)) ) {
if ( !(options.includes(userChoice.toLowerCase())) ) {
return response.send('<Response><Message>Escolha pedra, papel ou tesoura.</Message></Response>');
}

Expand Down

0 comments on commit f8b7102

Please sign in to comment.