aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r--src-vue/src/plugins/store.ts8
1 files changed, 4 insertions, 4 deletions
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);