Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4de committed Feb 26, 2025
1 parent c197c44 commit 06aa10d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion blocks/targeted-block/targeted-block.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { events } from '@dropins/tools/event-bus.js';
import { getActiveRules } from '../../scripts/api/personalization/api.js';
import {getActiveRules, resetCart} from '../../scripts/api/personalization/api.js';

Check failure on line 2 in blocks/targeted-block/targeted-block.js

View workflow job for this annotation

GitHub Actions / build

A space is required after '{'

Check failure on line 2 in blocks/targeted-block/targeted-block.js

View workflow job for this annotation

GitHub Actions / build

resetCart not found in '../../scripts/api/personalization/api.js'

Check failure on line 2 in blocks/targeted-block/targeted-block.js

View workflow job for this annotation

GitHub Actions / build

'resetCart' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 2 in blocks/targeted-block/targeted-block.js

View workflow job for this annotation

GitHub Actions / build

A space is required before '}'

import conditionsMatched from './condition-matcher.js';
import { readBlockConfig } from '../../scripts/aem.js';
Expand Down
4 changes: 0 additions & 4 deletions scripts/api/hashtags/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ const defaultCallbackFn = (el, namespace, value, activeRules) => {
if (namespace === 'display_for_') {
if (value === 'desktop_only' && !isDesktop.matches) {
removeLink(el);
} else {
removeHashTags(el);
}

if (value === 'mobile_only' && isDesktop.matches) {
removeLink(el);
} else {
removeHashTags(el);
}

if (value.startsWith('segment')) {
Expand Down

0 comments on commit 06aa10d

Please sign in to comment.