Skip to content

Commit

Permalink
typo fix two rpc invoke params
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Jan 20, 2024
1 parent cdffc4a commit 554e678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/LoadingScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const LoadingScreen = (props: { onEnd: () => void }) => {
if (downloadedSize.current === total) {
await invoke_rpc("extract_7z", {
path: archive,
outputPath: samp,
output_path: samp,
});
setDownloading(false);
finishLoading(1);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const copySharedFilesIntoGameFolder = async () => {
const { gtasaPath } = useSettings.getState();
const dir = await path.appLocalDataDir();
const shared = await path.join(dir, "samp", "shared");
await invoke_rpc("copy_files_to_gtasa", { src: shared, gtasaDir: gtasaPath })
await invoke_rpc("copy_files_to_gtasa", { src: shared, gtasa_dir: gtasaPath })
.then(() => {})
.catch((e) => message(e, { title: "Error", type: "error" }));
};
Expand Down

0 comments on commit 554e678

Please sign in to comment.