Skip to content

Commit

Permalink
Use undefined for createWebSpeechPonyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed May 20, 2019
1 parent 392f9a2 commit afc45a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/component/src/Dictation.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,15 @@ class Dictation extends React.Component {

Dictation.defaultProps = {
disabled: false,
onError: undefined,
webSpeechPonyfill: undefined
};

Dictation.propTypes = {
dictateState: PropTypes.number.isRequired,
disabled: PropTypes.bool,
language: PropTypes.string.isRequired,
onError: PropTypes.func.isRequired,
onError: PropTypes.func,
setDictateInterims: PropTypes.func.isRequired,
setDictateState: PropTypes.func.isRequired,
setSendBox: PropTypes.func.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class extends React.Component {
userAvatarInitials: 'WC',
userID,
username: 'Web Chat user',
webSpeechPonyfillFactory: null
webSpeechPonyfillFactory: undefined
};
}

Expand Down Expand Up @@ -263,7 +263,7 @@ export default class extends React.Component {
<ReactWebChat
activityMiddleware={ this.activityMiddleware }
attachmentMiddleware={ this.attachmentMiddleware }
className={ WEB_CHAT_CSS }
className={ WEB_CHAT_CSS + '' }
groupTimestamp={ groupTimestamp === 'default' ? undefined : groupTimestamp === 'false' ? false : +groupTimestamp }
directLine={ directLine }
disabled={ disabled }
Expand Down

0 comments on commit afc45a6

Please sign in to comment.