Skip to content

Commit

Permalink
only fire answer alerter if there are bad answers
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasnteireho committed Nov 11, 2024
1 parent 3ae5162 commit be42616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mobile/pages/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ export default Component.extend({
viewerversion: constants.A2JVersionNum
}

if (Array.isArray(postBody.invalidAnswers)){
if (postBody.invalidAnswers.length){
if (Array.isArray(postBody.invalidAnswers)) {
if (postBody.invalidAnswers.length) {
$.ajax({
url: 'https://staging.a2jauthor.org/a2jauthor/bad-answer-alert.php',
type: 'POST',
Expand Down

0 comments on commit be42616

Please sign in to comment.