Skip to content

Commit

Permalink
handle nextStep not available
Browse files Browse the repository at this point in the history
  • Loading branch information
faival committed Mar 19, 2018
1 parent afebe78 commit c51e564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/transactions/transactionRow.js
Expand Up @@ -16,7 +16,7 @@ class TransactionRow extends React.Component {

render() {
const { props } = this;
const nextStep = () => (props.nextStep({ value: props.value })) || (() => {});
const nextStep = !props.nextStep ? (() => {}) : () => (props.nextStep({ value: props.value }));

return (
<div className={`${grid.row} ${styles.rows} ${styles.clickable} transactionsRow`} onClick={nextStep}>
Expand Down

0 comments on commit c51e564

Please sign in to comment.