@streamoid/settings 0.25.0 → 0.25.1
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/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13593,7 +13593,7 @@ function BillingContent({
|
|
|
13593
13593
|
const fetchBillingOverview = (0, import_react25.useCallback)(async () => {
|
|
13594
13594
|
const isCurrent = billingRequestGate.current.begin(workspaceId);
|
|
13595
13595
|
if (!isCurrent) return;
|
|
13596
|
-
creditsRequestGate.current.
|
|
13596
|
+
const creditsCurrent = creditsRequestGate.current.begin(workspaceId);
|
|
13597
13597
|
setLoadingBilling(true);
|
|
13598
13598
|
setBillingOverviewLoaded(false);
|
|
13599
13599
|
try {
|
|
@@ -13613,7 +13613,7 @@ function BillingContent({
|
|
|
13613
13613
|
setSubscription(subRes.subscription);
|
|
13614
13614
|
setEntitlement(subRes.entitlement);
|
|
13615
13615
|
}
|
|
13616
|
-
if (creditsRes?.availableCredits != null) {
|
|
13616
|
+
if (creditsRes?.availableCredits != null && creditsCurrent?.()) {
|
|
13617
13617
|
setAvailableCredits(creditsRes.availableCredits);
|
|
13618
13618
|
setSharedPool(creditsRes.sharedPool ?? null);
|
|
13619
13619
|
setSponsorShare(creditsRes.sponsorShare ?? null);
|
package/dist/index.mjs
CHANGED
|
@@ -13457,7 +13457,7 @@ function BillingContent({
|
|
|
13457
13457
|
const fetchBillingOverview = useCallback10(async () => {
|
|
13458
13458
|
const isCurrent = billingRequestGate.current.begin(workspaceId);
|
|
13459
13459
|
if (!isCurrent) return;
|
|
13460
|
-
creditsRequestGate.current.
|
|
13460
|
+
const creditsCurrent = creditsRequestGate.current.begin(workspaceId);
|
|
13461
13461
|
setLoadingBilling(true);
|
|
13462
13462
|
setBillingOverviewLoaded(false);
|
|
13463
13463
|
try {
|
|
@@ -13477,7 +13477,7 @@ function BillingContent({
|
|
|
13477
13477
|
setSubscription(subRes.subscription);
|
|
13478
13478
|
setEntitlement(subRes.entitlement);
|
|
13479
13479
|
}
|
|
13480
|
-
if (creditsRes?.availableCredits != null) {
|
|
13480
|
+
if (creditsRes?.availableCredits != null && creditsCurrent?.()) {
|
|
13481
13481
|
setAvailableCredits(creditsRes.availableCredits);
|
|
13482
13482
|
setSharedPool(creditsRes.sharedPool ?? null);
|
|
13483
13483
|
setSponsorShare(creditsRes.sponsorShare ?? null);
|