Skip to content

Commit 8cc34c2

Browse files
committed
ensure AppConfig returns nothing outside of dev
1 parent a4789be commit 8cc34c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/app-config/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const useFeature = (featureKey: AppConfigEntry): boolean => {
2020

2121
// datastore for the __DEV__ feature flags
2222
export const AppConfig = async (): Promise<FeatureFlag[]> => {
23+
if (!isDevMode()) {
24+
return []
25+
}
26+
2327
return [
2428
{
2529
title: 'Show the course search recents screen',

0 commit comments

Comments
 (0)