Skip to content

Commit

Permalink
fix bug in search screen
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Dec 26, 2024
1 parent 98267af commit 46e7d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/StoreSearchScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const StoreSearch = (route = {}) => {
)}
</Animated.View>
{showDismissOverlay && <Pressable style={StyleSheet.absoluteFill} onPress={() => Keyboard.dismiss()} pointerEvents='box-only' />}
{results.length && (
{results.length > 0 && (
<YStack animate='quick' flex={1} padding='$3'>
<Text fontSize='$4' color='$textSecondary' marginTop='$2' marginBottom='$4'>
Found {results.length} {pluralize('result', results.length)} for "{searchQuery}"
Expand Down

0 comments on commit 46e7d7c

Please sign in to comment.