Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Bug fix: Self-hosted hitting `cloudBilling.getUsage` (#9597)

Steve Farthing5e5f198aae30
diff --git a/web/src/ee/features/billing/utils/isCloudBilling.ts b/web/src/ee/features/billing/utils/isCloudBilling.ts
index 203b3163b9..1264f0deb6 100644
--- a/web/src/ee/features/billing/utils/isCloudBilling.ts
+++ b/web/src/ee/features/billing/utils/isCloudBilling.ts
@@ -23,6 +23,6 @@ export function isCloudBillingEnabled(): boolean {
* @returns true if cloud billing features should be shown/enabled
*/
export function useIsCloudBillingAvailable(): boolean {
- const cloudRegion = useLangfuseCloudRegion();
- return Boolean(cloudRegion);
+ const { region } = useLangfuseCloudRegion();
+ return Boolean(region);
}