Skip to content

Commit 76a1948

Browse files
Merge pull request LucasBassetti#179 from pascalgagneur/Fix-server-side-render
Fixes server side rendering
2 parents 57636a4 + 0d56698 commit 76a1948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ChatBot.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ ChatBot.propTypes = {
750750
speechSynthesis: PropTypes.shape({
751751
enable: PropTypes.bool,
752752
lang: PropTypes.string,
753-
voice: PropTypes.instanceOf(window.SpeechSynthesisVoice),
753+
voice: typeof window !== 'undefined' ? PropTypes.instanceOf(window.SpeechSynthesisVoice) : PropTypes.any,
754754
}),
755755
steps: PropTypes.arrayOf(PropTypes.object).isRequired,
756756
style: PropTypes.objectOf(PropTypes.any),

0 commit comments

Comments
 (0)