From 29eef36d52a0fb613518df1f26e0b16618f8dfda Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Mon, 14 Aug 2023 16:26:11 +0530 Subject: [PATCH] Fix OS state type --- renderer/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/pages/index.tsx b/renderer/pages/index.tsx index d318122..c74c1e9 100644 --- a/renderer/pages/index.tsx +++ b/renderer/pages/index.tsx @@ -17,7 +17,7 @@ import useLog from "../components/hooks/useLog"; const Home = () => { // STATES - const [os, setOs] = useState(""); + const [os, setOs] = useState<"linux" | "mac" | "win" | undefined>(undefined); const [imagePath, SetImagePath] = useState(""); const [upscaledImagePath, setUpscaledImagePath] = useState(""); const [outputPath, setOutputPath] = useState("");