Skip to content

Commit

Permalink
prevent displaying skeleton when list items are ready
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz committed Nov 22, 2023
1 parent 963b4f1 commit 48cddca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function SidebarLinks({onLinkClick, insets, optionListItems, isLoading, priority
shouldDisableFocusOptions={isSmallScreenWidth}
optionMode={viewMode}
/>
{isLoading && (
{isLoading && optionListItems.length === 0 && (
<View style={[StyleSheet.absoluteFillObject, styles.appBG]}>
<OptionsListSkeletonView shouldAnimate />
</View>
Expand Down

0 comments on commit 48cddca

Please sign in to comment.