From e0b0219a8952c1b08cb607eac3344046f7f724dd Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 18 Mar 2025 17:39:41 -0500 Subject: [PATCH] Website: Update start CTA for logged-out users (#27228) Closes: https://github.com/fleetdm/confidential/issues/9975 Changes: - Updated the start CTA to be collapsed by default for users who aren't signed in. --- website/api/hooks/custom/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/website/api/hooks/custom/index.js b/website/api/hooks/custom/index.js index d8107a4655..08cc7d2ab0 100644 --- a/website/api/hooks/custom/index.js +++ b/website/api/hooks/custom/index.js @@ -228,10 +228,7 @@ will be disabled and/or hidden in the UI. // Not logged in? Set local variables for the start flow CTA. if (!req.session.userId) { res.locals.showStartCta = true; - res.locals.collapseStartCta = false; - if(req.session.expandCtaAt && req.session.expandCtaAt > Date.now()) { - res.locals.collapseStartCta = true; - } + res.locals.collapseStartCta = true; return next(); }