Skip to content

Commit

Permalink
arrow icon hide for gilder in review rating if length is less than 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Dec 8, 2024
1 parent cbb9dd8 commit ccbb2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/moredetailsaddress/moredetailsaddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function reviewRender() {
observer.observe(document.querySelector(".branchcustomer-review-cards").querySelector(".carousel-inner"));

if (reviewCards.length <= 3) {
document.querySelector(".branchcustomer-review-cards").querySelector(".carousel-inner").querySelector(".carousel-navigation-buttons").classList.add("dp-none");
document.querySelector(".branchcustomer-review-cards").querySelector(".carousel-navigation-buttons").classList.add("dp-none");
}
} catch (error) {
console.error("Error: Review Rating Logic", error);
Expand Down

0 comments on commit ccbb2d9

Please sign in to comment.