mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-17 20:51:55 +01:00
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:
parent
903b26bfca
commit
187509504d
@ -7,7 +7,7 @@ import { UserInputRequest } from "../../../types/types";
|
|||||||
import "./userinput.less";
|
import "./userinput.less";
|
||||||
|
|
||||||
export const UserInputModal = (userInputRequest: UserInputRequest) => {
|
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 [countdown, setCountdown] = React.useState(Math.floor(userInputRequest.timeoutms / 1000));
|
||||||
|
|
||||||
const closeModal = React.useCallback(() => {
|
const closeModal = React.useCallback(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user