Skip to content

Commit

Permalink
remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4de committed Feb 14, 2025
1 parent f19381b commit 324a5b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/targeted-block/targeted-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const updateTargetedBlocksVisibility = async () => {
};

if (Cart.getCartDataFromCache() !== null) {
const cartId = Cart.getCartDataFromCache() && Cart.getCartDataFromCache().id;
const cartId = Cart.getCartDataFromCache().id || null;
if (cartId) {
const response = await getCartRules(cartId);
activeRules.cart = response.cart?.rules || [];
Expand Down

0 comments on commit 324a5b2

Please sign in to comment.