Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
burakcan committed Nov 26, 2015
1 parent 6240b21 commit 5e13686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Step.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ var Step = (function (_Component) {
_react2['default'].createElement(
'button',
{ onClick: next, style: single ? this.styles['fullButton'] : this.styles['button'] },
single ? 'OK Got It' : '',
last ? 'Done' : 'Next'
single && 'OK Got It',
!single && (last ? 'Done' : 'Next')
),
_react2['default'].createElement(
'div',
Expand Down
2 changes: 1 addition & 1 deletion src/Step.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class Step extends Component {
<div className='WalkThru-Footer' style={ this.styles['footer'] }>
<button onClick={ next } style={ single ? this.styles['fullButton'] : this.styles['button'] }>
{ single && 'OK Got It' }
{ last ? 'Done' : 'Next' }
{ !single && (last ? 'Done' : 'Next') }
</button>
<div className='WalkThru-Nav' style={ this.styles['nav'] }>
<span className='WalkThru-Nav-text' style={ this.styles['navText'] }>step { step }</span>
Expand Down

0 comments on commit 5e13686

Please sign in to comment.