@tap-payments/os-micro-frontend-shared 0.1.257-test.4 → 0.1.257-test.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,9 +26,9 @@ export default function MerchantItem({ brands, isLoading, onFilterChange, mercha
26
26
  return brands.filter((brand) => brand.merchants.some((merchant) => merchantsIds === null || merchantsIds === void 0 ? void 0 : merchantsIds.includes(merchant.legacy_id))).length;
27
27
  }, [brands, merchantsIds]);
28
28
  const onClick = () => {
29
+ if (atLeastOneMerchantSelected && isAllSelected)
30
+ return;
29
31
  if (isAllSelected) {
30
- if (atLeastOneMerchantSelected)
31
- return;
32
32
  onFilterChange === null || onFilterChange === void 0 ? void 0 : onFilterChange([]);
33
33
  return;
34
34
  }
@@ -23,9 +23,9 @@ function RetailersItem({ retailersIds = [], isLoading, retailers = [], onFilterC
23
23
  }, [retailers, isRetailerSelected, hideCheckbox]);
24
24
  const isSomeSelected = useMemo(() => !isAllSelected && retailersIds.length > 0, [retailersIds, isAllSelected]);
25
25
  const onClick = () => {
26
+ if (atLeastOneRetailerSelected && isAllSelected)
27
+ return;
26
28
  if (isAllSelected) {
27
- if (atLeastOneRetailerSelected)
28
- return;
29
29
  onFilterChange === null || onFilterChange === void 0 ? void 0 : onFilterChange([]);
30
30
  return;
31
31
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.257-test.4",
5
- "testVersion": 4,
4
+ "version": "0.1.257-test.5",
5
+ "testVersion": 5,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",