fix: type mismatch in userinput modal

A null was used in a place where a string should have been. It has been
updated to a string to remove the error associated with it.
This commit is contained in:
Sylvia Crowe 2024-02-08 21:04:38 -08:00
parent 903b26bfca
commit 187509504d

View File

@ -7,7 +7,7 @@ import { UserInputRequest } from "../../../types/types";
import "./userinput.less";
export const UserInputModal = (userInputRequest: UserInputRequest) => {
const [responseText, setResponseText] = React.useState(null);
const [responseText, setResponseText] = React.useState("");
const [countdown, setCountdown] = React.useState(Math.floor(userInputRequest.timeoutms / 1000));
const closeModal = React.useCallback(() => {