Skip to content

Commit a24f59b

Browse files
authored
Hopefully it works this time. (#5082)
1 parent 2751c7f commit a24f59b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

web/utils/providerUtils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { Provider, SortOption } from "@/types/provider";
22

3-
const HELICONE_ORG_ID = process.env.NEXT_PUBLIC_HELICONE_ORG_ID;
4-
53
/**
64
* Get provider name by ID
75
*/
@@ -18,11 +16,9 @@ export const filterPubliclyVisibleProviders = (
1816
orgId?: string,
1917
): Provider[] => {
2018
return providers.filter((provider) => {
21-
// Helicone org can see all providers
22-
if (orgId === HELICONE_ORG_ID) {
19+
if (orgId === process.env.NEXT_PUBLIC_HELICONE_ORG_ID) {
2320
return true;
2421
}
25-
// Default to true if not specified (backward compatible)
2622
return provider.publiclyVisible !== false;
2723
});
2824
};

0 commit comments

Comments
 (0)