Skip to content

Commit

Permalink
Fix divider
Browse files Browse the repository at this point in the history
  • Loading branch information
otenav committed Oct 14, 2024
1 parent ba1a97f commit dafdd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(sok)/_components/searchResult/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface DividerProps {
index: number;
indexOfLastWithScoreAboveThreshold: number;
}
export default function Divider({ index, indexOfLastWithScoreAboveThreshold }: DividerProps): ReactElement {
export default function Divider({ index, indexOfLastWithScoreAboveThreshold }: DividerProps): ReactElement | null {
const query = useQuery();

if (indexOfLastWithScoreAboveThreshold !== 0 && indexOfLastWithScoreAboveThreshold === index) {
Expand Down

0 comments on commit dafdd12

Please sign in to comment.