Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed Jun 13, 2024
1 parent 321bf36 commit 6148c67
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1430,11 +1430,9 @@ public Response nextQuestion(@FormDataParam("msg") String msg, @FormDataParam("c
SurveyHandlerServiceQueries.updateParticipantInDB(currParticipant, database);
}

String message;
String message = bodyInput.getAsString("msg");
if (bodyInput.getAsString("msg").startsWith("!SurveyAnswer")) {
message = intent.substring(intent.length() - 1);
} else {
message = bodyInput.getAsString("msg");
message = message.substring(message.length() - 1);
}

// check if participant is done with survey and can choose new one
Expand Down

0 comments on commit 6148c67

Please sign in to comment.