Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ufkaya committed Sep 14, 2021
1 parent 01ed733 commit fd81108
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ const LDContext = createContext<Context>(null)
const LDProvider: FC<Props> = ({ initialLDData, clientId, children }) => {
// persists the data initialized server-side on the client
const ldData = useMemo(() => initialLDData, [initialLDData])
const { user = { key: null }, isBot, initializeClient = true, allFlags = {} } = ldData || {}
const {
user = { key: null },
isBot,
initializeClient = true,
allFlags = {},
} = ldData || {}

useDeepCompareEffect(() => {
// only enable client-side instrumentation for non-bots to prevent unnecessary MAU
Expand Down

0 comments on commit fd81108

Please sign in to comment.