@mohasinac/appkit 3.4.3 → 3.4.4

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.
@@ -38,12 +38,18 @@ export function PrintCenterView({ store, brandName = "LetItRip", initialProducts
38
38
  const [selectedOrders, setSelectedOrders] = useState(new Set());
39
39
  const toggleProduct = (id) => setSelectedProducts((prev) => {
40
40
  const next = new Set(prev);
41
- next.has(id) ? next.delete(id) : next.add(id);
41
+ if (next.has(id))
42
+ next.delete(id);
43
+ else
44
+ next.add(id);
42
45
  return next;
43
46
  });
44
47
  const toggleOrder = (id) => setSelectedOrders((prev) => {
45
48
  const next = new Set(prev);
46
- next.has(id) ? next.delete(id) : next.add(id);
49
+ if (next.has(id))
50
+ next.delete(id);
51
+ else
52
+ next.add(id);
47
53
  return next;
48
54
  });
49
55
  const printSelected = () => window.print();
@@ -142,7 +142,10 @@ export function SellerBidsView({ endpoint = SELLER_ENDPOINTS.BIDS }) {
142
142
  }, [rows]);
143
143
  const toggleGroup = (id) => setCollapsedGroups((s) => {
144
144
  const next = new Set(s);
145
- next.has(id) ? next.delete(id) : next.add(id);
145
+ if (next.has(id))
146
+ next.delete(id);
147
+ else
148
+ next.add(id);
146
149
  return next;
147
150
  });
148
151
  // S-STORE-4-B — bulk actions: cancel / retract.
@@ -49,7 +49,10 @@ export function SellerReviewsView({ reviewsApiBase = "/api/store/reviews", reply
49
49
  const toggleSelected = useCallback((id) => {
50
50
  setSelectedIds((prev) => {
51
51
  const next = new Set(prev);
52
- next.has(id) ? next.delete(id) : next.add(id);
52
+ if (next.has(id))
53
+ next.delete(id);
54
+ else
55
+ next.add(id);
53
56
  return next;
54
57
  });
55
58
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohasinac/appkit",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"