forked from github/cinny
Fix syntaxical mistake causing chat open state to never update
This commit is contained in:
@@ -238,7 +238,7 @@ export function CallProvider({ children }: CallProviderProps) {
|
|||||||
|
|
||||||
const toggleChat = useCallback(async () => {
|
const toggleChat = useCallback(async () => {
|
||||||
const newState = !isChatOpen;
|
const newState = !isChatOpen;
|
||||||
setIsChatOpenState(!newState);
|
setIsChatOpenState(newState);
|
||||||
}, [isChatOpen]);
|
}, [isChatOpen]);
|
||||||
|
|
||||||
const contextValue = useMemo<CallContextState>(
|
const contextValue = useMemo<CallContextState>(
|
||||||
|
|||||||
Reference in New Issue
Block a user