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 dbcb876 commit 31b9671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,9 +1068,10 @@ function goNext(){
if(globalJsonObject.contacts.length==10){
let Id = globalJsonObject.contacts[lastIndex].ID;
let fav = globalJsonObject.contacts[lastIndex].Favorite;

if(contactInEdit === 0){
firstContactPageFlag += 1;
console.log(document.getElementById("search-favorites-on").style);
console.log("Search-favorite-on = "+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);
Expand Down

0 comments on commit 31b9671

Please sign in to comment.