Skip to content
This repository was archived by the owner on May 17, 2025. It is now read-only.

Commit 85cbac7

Browse files
committed
fix: update file existence check to use object for prefix
1 parent 237de91 commit 85cbac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ui/hooks/useFS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export enum CheckState {
1111
export function useFileExists(path: string, prefix?: string): [CheckState, typeof fs] {
1212
const [state, setState] = useState<CheckState>(CheckState.LOADING);
1313

14-
const check = () => fs.fileExists(path, prefix)
14+
const check = () => fs.fileExists(path, { prefix })
1515
.then(exists => setState(exists ? CheckState.TRUE : CheckState.FALSE))
1616
.catch(() => setState(CheckState.ERROR));
1717

0 commit comments

Comments
 (0)