Skip to content

Commit

Permalink
LYNX-734: Correct GraphQL type name CustomerGroup -> customerGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko committed Feb 10, 2025
1 parent e8ae318 commit 432d63f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/targeted-block/targeted-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getActiveRules = async (cartId) => {
customerSegments(cartId: $cartId) {
name
}
CustomerGroup {
customerGroup {
name
}
cart(cart_id: $cartId) {
Expand Down Expand Up @@ -56,7 +56,7 @@ const conditionsMatched = (activeRules, blockConfig) => {
const activeSegments = activeRules.customerSegments?.map(
(segment) => segment.name,
);
const activeGroup = activeRules.CustomerGroup?.name;
const activeGroup = activeRules.customerGroup?.name;
const activeCartRules = activeRules.cart?.rules?.map(
(rule) => rule.name,
);
Expand All @@ -78,7 +78,7 @@ const conditionsMatched = (activeRules, blockConfig) => {
const updateTargetedBlocksVisibility = async () => {
const activeRules = (Cart.getCartDataFromCache() === null) ? {
customerSegments: [],
CustomerGroup: [],
customerGroup: [],
cart: {
rules: [],
},
Expand Down

0 comments on commit 432d63f

Please sign in to comment.