Skip to content

Commit 341ed11

Browse files
committed
fix(web): read the Connect host label from the environment list
1 parent 4da2070 commit 341ed11

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/cloud/ConnectOnboardingDialog.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ function ConfiguredConnectOnboardingDialog() {
7878
primaryEnvironmentId === null ? environmentsReady : primarySessionState._tag !== "Initial";
7979

8080
const controller = useCloudLinkController(primaryEnvironmentId);
81-
const hostLabel = controller.linkState.target?.label ?? "this host";
81+
const linkTargetId = controller.linkState.target?.environmentId;
82+
const hostLabel =
83+
environments.find((environment) => environment.environmentId === linkTargetId)?.label ??
84+
"this host";
8285
const stepLabels: Record<OnboardingStep, string> = {
8386
publish: `Share ${hostLabel}`,
8487
devices: "Connect devices",

0 commit comments

Comments
 (0)