diff --git a/src/components/install/InstallLocationPicker.vue b/src/components/install/InstallLocationPicker.vue index cfc6fcf9a..8232a977b 100644 --- a/src/components/install/InstallLocationPicker.vue +++ b/src/components/install/InstallLocationPicker.vue @@ -87,10 +87,10 @@ onMounted(async () => { installPath.value = paths.defaultInstallPath }) -const validatePath = async () => { +const validatePath = async (path: string) => { try { pathError.value = '' - const validation = await electron.validateInstallPath(installPath.value) + const validation = await electron.validateInstallPath(path) if (!validation.isValid) { pathError.value = validation.error @@ -105,7 +105,7 @@ const browsePath = async () => { const result = await electron.showDirectoryPicker() if (result) { installPath.value = result - await validatePath() + await validatePath(result) } } catch (error) { pathError.value = t('install.failedToSelectDirectory')