Skip to content

Commit

Permalink
fix: some issue with incompatible type and props
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludea committed Oct 15, 2024
1 parent cad0231 commit 08bdb4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function Footer() {
const [gameState, setGameState] = useState("not_installed");
const [gameLoading, setGameLoading] = useState<boolean>(false);
const [gameRunning, setGameRunning] = useState<boolean>(false);
const [workspacePath, setWorkspacePath] = useState<string>();
const [gameName, setGameName] = useState<string>();
const [workspacePath, setWorkspacePath] = useState<string>("");
const [gameName, setGameName] = useState<string>("");
const [repositoryUrl, setRepositoryUrl] = useState<string>();
const [downloadedBytesStart, setDownloadedBytesStart] = useState("");
const [downloadedBytesEnd, setDownloadedBytesEnd] = useState("");
Expand Down Expand Up @@ -224,7 +224,6 @@ function Footer() {
{gameState === "not_installed" ? (
<Paper
sx={{ position: "fixed", bottom: "10%" }}
justifyContent="center"
elevation={3}
>
Download: {downloadedBytesStart} / {downloadedBytesEnd} @
Expand Down
4 changes: 2 additions & 2 deletions src/components/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function Options() {
useEffect(() => {
store.load().catch((err: string) => setGlobalError(err));
store
.get("game_url")
.then((value) => setGameURL(value))
.get<string>("game_url")
.then((value: string | null) => setGameURL(value))
.catch((err: string) => setGlobalError(err));
store
.get<string>("launcher_url")
Expand Down

0 comments on commit 08bdb4d

Please sign in to comment.