Skip to content

Commit 1306e6a

Browse files
committed
AC-14607: Wishlist count not displayed on homepage/other pages except wishlist page in customer menu
Fix static test failure
1 parent 0a12864 commit 1306e6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Wishlist/view/frontend/web/js/view/wishlist-mixin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ define(['jquery', 'Magento_Customer/js/customer-data'], function ($, customerDat
1717
wishlist.subscribe(function (updatedWishlist) {
1818
const counters = $(selector);
1919

20-
if (typeof updatedWishlist.counter !== 'undefined' && updatedWishlist.counter !== null && counters.length) {
20+
if (typeof updatedWishlist.counter !== 'undefined'
21+
&& updatedWishlist.counter !== null
22+
&& counters.length
23+
) {
2124
counters.text(updatedWishlist.counter);
2225
}
2326
if (updatedWishlist.counter === null) {

0 commit comments

Comments
 (0)