Skip to content

Commit

Permalink
update app.js
Browse files Browse the repository at this point in the history
- Fixed bug where the favorited search would switch off on clicking prev.
  • Loading branch information
jsalzer312 committed May 29, 2024
1 parent c5825d4 commit 0ed34d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ function goPrev(){
if(contactInEdit === 0 ){
firstContactPageFlag -= 1;
//if search field is empty
if(document.getElementById("search-bar").value === ""){
if(document.getElementById("search-bar").value === "" && document.getElementById("search-favorites-on").style === "none"){
firstPage(prevName,prev);
}
//if search field is in use
Expand Down

0 comments on commit 0ed34d9

Please sign in to comment.