We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 411b323 commit 6da7039Copy full SHA for 6da7039
1 file changed
src/hooks/useChat.ts
@@ -71,7 +71,7 @@ const useChat = (
71
const chatProvider = Providers[provider]
72
73
const loadChat = useCallback<(args: { open: boolean }) => void>(
74
- ({ open = true }) => {
+ ({ open = true } = { open: true }) => {
75
if (!providerKey) {
76
//eslint-disable-next-line no-console
77
console.error('No api key given to react-live-chat-loader')
0 commit comments