Skip to content

Commit 70718e5

Browse files
authored
fix: fix the search button unclickable when back to the homepage (#149)
1 parent 7139add commit 70718e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Search.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function Search() {
1212
pkgname: global.pkgname,
1313
}));
1414
const dispatch = useDispatch<Dispatch>();
15-
const [value, setValue] = useState<string>();
15+
const [value, setValue] = useState<string | undefined>(pkgname);
1616
const navigate = useNavigate();
1717
const [links] = useState<{ to: string; label: string }[]>([
1818
{

0 commit comments

Comments
 (0)