Skip to content

Commit

Permalink
⚡️Decreased search min chars
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijmenGThN committed Jan 9, 2024
1 parent d5bcbca commit 1f6c8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Search() {
const [searchTerm, setSearchTerm] = useState('')

useEffect(() => {
if (searchTerm.length < 5) setResults([])
if (searchTerm.length < 3) setResults([])
else {
var delay = setTimeout(async () => {
let records = await pb.collection('posts').getFullList({
Expand Down

0 comments on commit 1f6c8e6

Please sign in to comment.