Skip to content

Commit

Permalink
fix(debug mode): showing debug tab view when debug mode is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pac-guerreiro committed Oct 18, 2024
1 parent 42b3f45 commit 6b64ae8
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function BottomTabBar({selectedTab}: BottomTabBarProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();
const {activeWorkspaceID} = useActiveWorkspace();
const [user] = useOnyx(ONYXKEYS.USER);
const [reports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
const [reportActions] = useOnyx(ONYXKEYS.COLLECTION.REPORT_ACTIONS);
const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS);
Expand Down Expand Up @@ -112,11 +113,13 @@ function BottomTabBar({selectedTab}: BottomTabBarProps) {

return (
<>
<DebugTabView
selectedTab={selectedTab}
chatTabBrickRoad={chatTabBrickRoad}
activeWorkspaceID={activeWorkspaceID}
/>
{user?.isDebugModeEnabled && (
<DebugTabView
selectedTab={selectedTab}
chatTabBrickRoad={chatTabBrickRoad}
activeWorkspaceID={activeWorkspaceID}
/>
)}
<View style={styles.bottomTabBarContainer}>
<PressableWithFeedback
onPress={navigateToChats}
Expand Down

0 comments on commit 6b64ae8

Please sign in to comment.