Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jsalzer312 committed May 29, 2024
1 parent a2a0268 commit dbcb876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1070,14 +1070,14 @@ function goNext(){
let fav = globalJsonObject.contacts[lastIndex].Favorite;
if(contactInEdit === 0){
firstContactPageFlag += 1;
console.log(document.getElementById("search-favorites-on").style);
//if search field is empty
if(document.getElementById("search-favorites-on").style === "block" || document.getElementById("search-bar").value !== ""){
searchContact(lastContactFirstName, lastContactLastName, Id, fav, next);
firstPage(nextName,next);
}
//if search field is in use
else if(document.getElementById("search-bar").value === ""){

firstPage(nextName,next);
}
}
}
Expand Down

0 comments on commit dbcb876

Please sign in to comment.