mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #15685 from overleaf/rd-newsletter-homepage
[web] Hide newsletter checkbox on the homepage when token-confirmation-odc variant is active GitOrigin-RevId: b5c0c1fdf205c99584ae7b6b461b13a73745fef3
This commit is contained in:
parent
da401ce5f9
commit
4dd2635c40
1 changed files with 10 additions and 0 deletions
|
@ -57,8 +57,18 @@ module.exports = HomeController = {
|
|||
'failed to get "design-system-updates" split test assignment'
|
||||
)
|
||||
}
|
||||
|
||||
const onboardingFlowAssignment =
|
||||
await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'onboarding-flow'
|
||||
)
|
||||
|
||||
return res.render('external/home/v2', {
|
||||
designSystemUpdatesVariant: designSystemUpdatesAssignment.variant,
|
||||
hideNewsletterCheckbox:
|
||||
onboardingFlowAssignment?.variant === 'token-confirmation-odc',
|
||||
})
|
||||
} else {
|
||||
return res.redirect('/login')
|
||||
|
|
Loading…
Reference in a new issue