Skip to content

Commit

Permalink
simplify conditions/
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Mar 4, 2024
1 parent 1385ed6 commit 2c0afdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function WorkspaceCategoriesPage({policyCategories, route}: WorkspaceCategoriesP
<View style={[styles.ph5, styles.pb5]}>
<Text style={[styles.textNormal, styles.colorMuted]}>{translate('workspace.categories.subtitle')}</Text>
</View>
{categoryList.length === 0 && isLoading && (
{isLoading && (
<ActivityIndicator
size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
style={[styles.flex1]}
Expand All @@ -159,7 +159,7 @@ function WorkspaceCategoriesPage({policyCategories, route}: WorkspaceCategoriesP
subtitle={translate('workspace.categories.emptyCategories.subtitle')}
/>
)}
{categoryList.length > 0 && !isLoading && (
{categoryList.length > 0 && (
<SelectionList
canSelectMultiple
sections={[{data: categoryList, indexOffset: 0, isDisabled: false}]}
Expand Down

0 comments on commit 2c0afdc

Please sign in to comment.