From 66d34200009e7860b9edaa4445cbeae5c789ddcf Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sat, 2 Aug 2025 18:22:29 +0400 Subject: [PATCH] refactor: select first profile if no running profiles are available --- src/components/profile-selector-dialog.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/profile-selector-dialog.tsx b/src/components/profile-selector-dialog.tsx index 358defb..1fd531d 100644 --- a/src/components/profile-selector-dialog.tsx +++ b/src/components/profile-selector-dialog.tsx @@ -97,15 +97,7 @@ export function ProfileSelectorDialog({ if (runningAvailableProfile) { setSelectedProfile(runningAvailableProfile.name); } else { - // If no running profile is available, find the first available profile - const availableProfile = profileList.find( - (profile) => - profile.browser !== "tor-browser" && - profile.browser !== "mullvad-browser", - ); - if (availableProfile) { - setSelectedProfile(availableProfile.name); - } + setSelectedProfile(profileList[0].name); } } } catch (err) {