Skip to content

Commit

Permalink
integration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Jan 23, 2019
1 parent d96680e commit 371fa8b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ export default class SendRowWarningMessage extends Component {

render () {
const { warnings, warningType } = this.props
console.log('from SendRowWarningMessage', warningMessage, warnings, warningType)

const warningMessage = warnings[warningType]
const warningMessage = warningType in warnings && warnings[warningType]

return (
warningMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import SendRowWarningMessage from './send-row-warning-message.component'
export default connect(mapStateToProps)(SendRowWarningMessage)

function mapStateToProps (state, ownProps) {
console.log('from SendRowWarningMessage container ', state)
return {
warnings: getSendWarnings(state),
warningType: ownProps.warningType,
Expand Down

0 comments on commit 371fa8b

Please sign in to comment.