diff options
Diffstat (limited to 'src/state/preferences/subtitles.tsx')
-rw-r--r-- | src/state/preferences/subtitles.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/preferences/subtitles.tsx b/src/state/preferences/subtitles.tsx index e0e89feb1..ef7ff3376 100644 --- a/src/state/preferences/subtitles.tsx +++ b/src/state/preferences/subtitles.tsx @@ -8,7 +8,9 @@ type SetContext = (v: boolean) => void const stateContext = React.createContext<StateContext>( Boolean(persisted.defaults.subtitlesEnabled), ) +stateContext.displayName = 'SubtitlesStateContext' const setContext = React.createContext<SetContext>((_: boolean) => {}) +setContext.displayName = 'SubtitlesSetContext' export function Provider({children}: {children: React.ReactNode}) { const [state, setState] = React.useState( |