Skip to content

Commit 14cda98

Browse files
authored
Update searchbar-child.tsx
removed unecessary comments
1 parent 1b54f01 commit 14cda98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Searchbar/searchbar-child.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function SearchBarChild({
2525
const response = await axios.get("/api/papers", {
2626
params: { subject: subjectName },
2727
});
28-
return response.data.papers.length; // Assuming the API returns an array of papers
28+
return response.data.papers.length;
2929
} catch (error) {
30-
return 0; // Return 0 if there's no papers found or an error occurs
30+
return 0;
3131
}
3232
};
3333

0 commit comments

Comments
 (0)