Skip to content

Commit

Permalink
Merge pull request #605 from systemli/Fix-feature-context
Browse files Browse the repository at this point in the history
πŸ› Fix feature context
  • Loading branch information
0x46616c6b authored Apr 25, 2024
2 parents 7c2b544 + 6e35b9a commit d98796f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/useFeature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useAuth from './useAuth'
const FeatureContext = createContext<Features>({} as Features)

const initalState: Features = {
telegram_enabled: false,
telegramEnabled: false,
}

export function FeatureProvider({ children }: { children: ReactNode }): JSX.Element {
Expand Down Expand Up @@ -34,7 +34,7 @@ export function FeatureProvider({ children }: { children: ReactNode }): JSX.Elem

const memoedValue = useMemo(
() => ({
telegram_enabled: features.telegram_enabled,
telegramEnabled: features.telegramEnabled,
}),
[features]
)
Expand Down

0 comments on commit d98796f

Please sign in to comment.