Skip to content

Commit

Permalink
must provide a default value otherwise this is very much not valid JS
Browse files Browse the repository at this point in the history
  • Loading branch information
kayakyakr committed Jul 22, 2022
1 parent f28dac5 commit 69fc380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface LDContext {
key: string;
}

const context = createContext<LDContext>({ flags: {}, ldClient: undefined, key });
const context = createContext<LDContext>({ flags: {}, ldClient: undefined, key: '' });
const { Provider, Consumer } = context;

export { Provider, Consumer, LDContext };
Expand Down

0 comments on commit 69fc380

Please sign in to comment.