[fix] building error
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Button, Spinner } from "@heroui/react"
|
||||
import { useRouter } from "next/navigation"
|
||||
import React, { useEffect, useState } from "react"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useSnapshot } from "valtio"
|
||||
import { setCsDir, setDir, steamStore } from "@/store/steam"
|
||||
import { open } from "@tauri-apps/plugin-dialog"
|
||||
@@ -13,7 +13,7 @@ export function Prepare() {
|
||||
const [cs2Dir, setCs2Dir] = useState(steam.csDir)
|
||||
|
||||
useEffect(() => {
|
||||
const checkPaths = async () => {
|
||||
const checkPaths = () => {
|
||||
if (steam.dir && steam.csDir) {
|
||||
router.push("/home")
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user