refactor: don't show useless tooltips

This commit is contained in:
zhom
2025-07-28 03:27:38 +04:00
parent 0b7cf547b3
commit b071e971b3
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -388,7 +388,9 @@ export function ProfilesDataTable({
</Button>
</span>
</TooltipTrigger>
<TooltipContent>{tooltipContent}</TooltipContent>
{tooltipContent && (
<TooltipContent>{tooltipContent}</TooltipContent>
)}
</Tooltip>
</div>
);
+2 -2
View File
@@ -164,7 +164,7 @@ export function useBrowserState(
const isBrowserUpdating = isUpdating?.(profile.browser) ?? false;
if (isRunning) {
return "Click to forcefully stop the browser";
return "";
}
if (isBrowserUpdating) {
@@ -180,7 +180,7 @@ export function useBrowserState(
return `Only one ${browserDisplayName} browser instance can run at a time. Stop the running ${browserDisplayName} browser first.`;
}
return "Click to launch the browser";
return "";
},
[
runningProfiles,