From 187509504dd618895bf6143e2986238a62b8d0dd Mon Sep 17 00:00:00 2001 From: Sylvia Crowe Date: Thu, 8 Feb 2024 21:04:38 -0800 Subject: [PATCH] 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. --- src/app/common/modals/userinput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/common/modals/userinput.tsx b/src/app/common/modals/userinput.tsx index 2bb93a87..f928149f 100644 --- a/src/app/common/modals/userinput.tsx +++ b/src/app/common/modals/userinput.tsx @@ -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(() => {