@wopr-network/platform-ui-core 1.19.5 → 1.19.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lib/api.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopr-network/platform-ui-core",
3
- "version": "1.19.5",
3
+ "version": "1.19.6",
4
4
  "description": "Brand-agnostic AI agent platform UI — deploy as any brand via env vars",
5
5
  "repository": {
6
6
  "type": "git",
package/src/lib/api.ts CHANGED
@@ -1279,8 +1279,8 @@ export interface CheckoutResponse {
1279
1279
  export async function getCreditBalance(): Promise<CreditBalance> {
1280
1280
  const res = await trpcVanilla.billing.creditsBalance.query({});
1281
1281
  return {
1282
- balance: (res?.balance_cents ?? 0) / 100,
1283
- dailyBurn: (res?.daily_burn_cents ?? 0) / 100,
1282
+ balance: (res?.balance_credits ?? res?.balance_cents ?? 0) / 100,
1283
+ dailyBurn: (res?.daily_burn_credits ?? res?.daily_burn_cents ?? 0) / 100,
1284
1284
  runway: res?.runway_days ?? null,
1285
1285
  };
1286
1286
  }