diff --git a/services/web/frontend/js/utils/splitTestUtils.ts b/services/web/frontend/js/utils/splitTestUtils.ts index 78802a0cca..f706199008 100644 --- a/services/web/frontend/js/utils/splitTestUtils.ts +++ b/services/web/frontend/js/utils/splitTestUtils.ts @@ -4,7 +4,10 @@ export function isSplitTestEnabled(name: string) { return getMeta('ol-splitTestVariants')?.[name] === 'enabled' } -export function getSplitTestVariant(name: string, fallback?: string) { +export function getSplitTestVariant( + name: string, + fallback: string = 'default' +) { return getMeta('ol-splitTestVariants')?.[name] || fallback }