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 newState = !isChatOpen;
|
||||
setIsChatOpenState(!newState);
|
||||
setIsChatOpenState(newState);
|
||||
}, [isChatOpen]);
|
||||
|
||||
const contextValue = useMemo<CallContextState>(
|
||||
|
||||
Reference in New Issue
Block a user