We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57636a4 commit 0d56698Copy full SHA for 0d56698
lib/ChatBot.jsx
@@ -750,7 +750,7 @@ ChatBot.propTypes = {
750
speechSynthesis: PropTypes.shape({
751
enable: PropTypes.bool,
752
lang: PropTypes.string,
753
- voice: PropTypes.instanceOf(window.SpeechSynthesisVoice),
+ voice: typeof window !== 'undefined' ? PropTypes.instanceOf(window.SpeechSynthesisVoice) : PropTypes.any,
754
}),
755
steps: PropTypes.arrayOf(PropTypes.object).isRequired,
756
style: PropTypes.objectOf(PropTypes.any),
0 commit comments