diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json index 996b647227..8b133a0912 100644 --- a/oxlint-suppressions.json +++ b/oxlint-suppressions.json @@ -1216,11 +1216,6 @@ "count": 1 } }, - "src/screens/StarterPack/Wizard/StepProfiles.tsx": { - "typescript/no-misused-promises": { - "count": 1 - } - }, "src/screens/StarterPack/Wizard/index.tsx": { "typescript/no-floating-promises": { "count": 2 diff --git a/src/screens/StarterPack/Wizard/StepProfiles.tsx b/src/screens/StarterPack/Wizard/StepProfiles.tsx index 4aef058b27..9f3b7076fd 100644 --- a/src/screens/StarterPack/Wizard/StepProfiles.tsx +++ b/src/screens/StarterPack/Wizard/StepProfiles.tsx @@ -87,7 +87,9 @@ export function StepProfiles({ sideBorders={false} style={[a.flex_1]} onEndReached={ - !query && !screenReaderEnabled ? () => fetchNextPage() : undefined + !query && !screenReaderEnabled + ? () => void fetchNextPage() + : undefined } onEndReachedThreshold={IS_NATIVE ? 2 : 0.25} keyboardDismissMode="on-drag" @@ -104,7 +106,11 @@ export function StepProfiles({ a.mt_lg, a.leading_snug, ]}> - Nobody was found. Try searching for someone else. + {query ? ( + + Nobody was found. Try searching for someone else. + + ) : null} )}