@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.
- package/package.json +1 -1
- package/src/lib/api.ts +2 -2
package/package.json
CHANGED
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
|
}
|