fixed to locate date

This commit is contained in:
2026-02-16 19:04:18 -06:00
parent 6e15f279b0
commit fc91b0a822
4 changed files with 5 additions and 4 deletions
@@ -9,7 +9,8 @@ interface Props {
function SearchDateBetween({ onSearch }: Props) {
const [startDate, setStartDate] = useState("");
const [endDate, setEndDate] = useState("");
const todayISO = new Date().toLocaleDateString("en-CA");
const [endDate, setEndDate] = useState(todayISO);
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();