diff --git a/src/initializers/growthbook.ts b/src/initializers/growthbook.ts index a2a703c7..8d246b54 100644 --- a/src/initializers/growthbook.ts +++ b/src/initializers/growthbook.ts @@ -9,5 +9,5 @@ import type * as GrowthbookType from 'growthbook'; export const createGrowthbook = = Record>(config: GrowthbookType.Context) => { if (!config?.clientKey) return; const {GrowthBook} = requireInjected('growthbook'); - return new GrowthBook(config) as GrowthbookType.GrowthBook; + return new GrowthBook({...config}) as GrowthbookType.GrowthBook; };