diff --git a/ui/src/pages/Overview.tsx b/ui/src/pages/Overview.tsx index 1b8105e..0f08788 100644 --- a/ui/src/pages/Overview.tsx +++ b/ui/src/pages/Overview.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import type { FormEvent } from "react"; +import type { FormEvent, KeyboardEvent } from "react"; import * as api from "../api"; import { usePoll } from "../hooks"; import { Icon } from "../icons"; @@ -250,7 +250,7 @@ function NewObjectiveModal({ const ps = projects.data ?? []; const custom = projectID === ""; - const submit = async (e: FormEvent) => { + const submit = async (e: FormEvent | KeyboardEvent) => { e.preventDefault(); if (busy) return; setBusy(true); @@ -284,6 +284,9 @@ function NewObjectiveModal({