From c009cbe313e29b660e8776fa2c4d82eb5195edbc Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Mon, 3 Oct 2022 18:37:26 +0200 Subject: fix: address _initializeApp result typing issue --- src-vue/src/plugins/store.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src-vue') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index 62b1f887..bcca7701 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -131,15 +131,15 @@ export const store = createStore({ * It invokes all Rust methods that are needed to initialize UI. */ async function _initializeApp(state: any) { - // @ts-ignore - const result: GameInstall = await invoke("find_game_install_location_caller") + const result = await invoke("find_game_install_location_caller") .catch((err) => { // Gamepath not found or other error console.error(err); alert(err); }); - state.game_path = result.game_path; - state.install_type = result.install_type as InstallType; + const typedResult: GameInstall = result as GameInstall; + state.game_path = typedResult.game_path; + state.install_type = typedResult.install_type; // Check installed Northstar version if found await _get_northstar_version_number(state); -- cgit v1.2.3