@agg-build/ui 1.2.1 → 1.2.2

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.
@@ -3496,6 +3496,7 @@ var UserProfilePage = ({
3496
3496
  return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
3497
3497
  };
3498
3498
  const classifyPosition = (position) => {
3499
+ if (position.marketStatus === "open") return "active";
3499
3500
  if (position.winner === true) {
3500
3501
  return position.closedClaimStatus === "redeemed" ? "closed" : "active";
3501
3502
  }
@@ -3530,6 +3531,7 @@ var UserProfilePage = ({
3530
3531
  return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
3531
3532
  };
3532
3533
  const classifyPosition = (position) => {
3534
+ if (position.marketStatus === "open") return "active";
3533
3535
  if (position.winner === true) {
3534
3536
  return position.closedClaimStatus === "redeemed" ? "closed" : "active";
3535
3537
  }
package/dist/index.js CHANGED
@@ -22290,6 +22290,7 @@ var UserProfilePage = ({
22290
22290
  return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
22291
22291
  };
22292
22292
  const classifyPosition = (position) => {
22293
+ if (position.marketStatus === "open") return "active";
22293
22294
  if (position.winner === true) {
22294
22295
  return position.closedClaimStatus === "redeemed" ? "closed" : "active";
22295
22296
  }
@@ -22324,6 +22325,7 @@ var UserProfilePage = ({
22324
22325
  return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
22325
22326
  };
22326
22327
  const classifyPosition = (position) => {
22328
+ if (position.marketStatus === "open") return "active";
22327
22329
  if (position.winner === true) {
22328
22330
  return position.closedClaimStatus === "redeemed" ? "closed" : "active";
22329
22331
  }
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  USER_PROFILE_TAB_POSITIONS,
11
11
  UserProfilePage,
12
12
  useHomePageModals
13
- } from "./chunk-2S2NFV7W.mjs";
13
+ } from "./chunk-6IBEGR7C.mjs";
14
14
  import {
15
15
  EventList,
16
16
  EventListItem,
package/dist/pages.js CHANGED
@@ -20579,6 +20579,7 @@ var UserProfilePage = ({
20579
20579
  return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
20580
20580
  };
20581
20581
  const classifyPosition = (position) => {
20582
+ if (position.marketStatus === "open") return "active";
20582
20583
  if (position.winner === true) {
20583
20584
  return position.closedClaimStatus === "redeemed" ? "closed" : "active";
20584
20585
  }
@@ -20613,6 +20614,7 @@ var UserProfilePage = ({
20613
20614
  return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
20614
20615
  };
20615
20616
  const classifyPosition = (position) => {
20617
+ if (position.marketStatus === "open") return "active";
20616
20618
  if (position.winner === true) {
20617
20619
  return position.closedClaimStatus === "redeemed" ? "closed" : "active";
20618
20620
  }
package/dist/pages.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  USER_PROFILE_TAB_POSITIONS,
8
8
  UserProfilePage,
9
9
  useHomePageModals
10
- } from "./chunk-2S2NFV7W.mjs";
10
+ } from "./chunk-6IBEGR7C.mjs";
11
11
  import "./chunk-E45WOOMN.mjs";
12
12
  import {
13
13
  DEPOSIT_MODAL_OPEN_EVENT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",