@wopr-network/platform-ui-core 1.1.12 → 1.1.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopr-network/platform-ui-core",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "Brand-agnostic AI agent platform UI — deploy as any brand via env vars",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,9 @@ function CreditsContent() {
40
40
  useEffect(() => {
41
41
  getOrganization()
42
42
  .then((org) => {
43
- const currentMember = org.members.find((m) => m.email === session?.user?.email);
43
+ const currentMember = org.members.find(
44
+ (m) => m.userId === session?.user?.id || (m.email && m.email === session?.user?.email),
45
+ );
44
46
  setOrgContext({
45
47
  orgId: org.id,
46
48
  orgName: org.name,
@@ -51,7 +53,7 @@ function CreditsContent() {
51
53
  // No org — show personal billing
52
54
  })
53
55
  .finally(() => setOrgChecked(true));
54
- }, [session?.user?.email]);
56
+ }, [session?.user?.email, session?.user?.id]);
55
57
 
56
58
  const [showCryptoPending, setShowCryptoPending] = useState(cryptoPending);
57
59
  const [dividendStats, setDividendStats] = useState<DividendWalletStats | null>(null);
@@ -5,6 +5,7 @@ import { Building2, Download } from "lucide-react";
5
5
  import { useCallback, useEffect, useState } from "react";
6
6
  import { AddPaymentMethodDialog } from "@/components/billing/add-payment-method-dialog";
7
7
  import { BuyCreditsPanel } from "@/components/billing/buy-credits-panel";
8
+ import { BuyCryptoCreditPanel } from "@/components/billing/buy-crypto-credits-panel";
8
9
  import { CreditBalance } from "@/components/billing/credit-balance";
9
10
  import { Badge } from "@/components/ui/badge";
10
11
  import { Button } from "@/components/ui/button";
@@ -157,6 +158,9 @@ export function OrgBillingPage({ orgId, orgName, isAdmin }: OrgBillingPageProps)
157
158
  transition={{ duration: 0.4, delay: sectionDelays.buyCredits, ease: "easeOut" }}
158
159
  >
159
160
  <BuyCreditsPanel />
161
+ <div className="mt-4">
162
+ <BuyCryptoCreditPanel />
163
+ </div>
160
164
  </motion.div>
161
165
  )}
162
166