@wopr-network/platform-ui-core 1.1.2 → 1.1.3

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.1.2",
3
+ "version": "1.1.3",
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
@@ -1274,8 +1274,8 @@ export interface CheckoutResponse {
1274
1274
  export async function getCreditBalance(): Promise<CreditBalance> {
1275
1275
  const res = await trpcVanilla.billing.creditsBalance.query({});
1276
1276
  return {
1277
- balance: (res?.balance_cents ?? 0) / 100,
1278
- dailyBurn: (res?.daily_burn_cents ?? 0) / 100,
1277
+ balance: (res?.balance_credits ?? res?.balance_cents ?? 0) / 100,
1278
+ dailyBurn: (res?.daily_burn_credits ?? res?.daily_burn_cents ?? 0) / 100,
1279
1279
  runway: res?.runway_days ?? null,
1280
1280
  };
1281
1281
  }