Skip to content

Commit

Permalink
Fix feature context
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Apr 25, 2024
1 parent 7c2b544 commit 6e35b9a
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 6e35b9a

Please sign in to comment.