Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix condition for displaying debug sections

Prateek Sunaldcd31baa2a26
diff --git a/mobile/apps/photos/lib/ui/settings_page.dart b/mobile/apps/photos/lib/ui/settings_page.dart
index af74ce0659..3d539ec3c7 100644
--- a/mobile/apps/photos/lib/ui/settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings_page.dart
@@ -169,7 +169,7 @@ class SettingsPage extends StatelessWidget {
const AboutSectionWidget(),
]);
- if (hasLoggedIn && flagService.internalUser || kDebugMode) {
+ if (hasLoggedIn && (flagService.flags.internalUser || kDebugMode)) {
contents.addAll([sectionSpacing, const DebugSectionWidget()]);
contents.addAll([sectionSpacing, const MLDebugSectionWidget()]);
}