Skip to content

Commit

Permalink
fix(back-button): empty text is a valid value
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 22, 2018
1 parent 0217348 commit eb0ff2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/back-button/back-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class BackButton {

render() {
const backButtonIcon = this.icon || this.config.get('backButtonIcon', 'arrow-back');
const backButtonText = this.text || this.config.get('backButtonText', this.mode === 'ios' ? 'Back' : '');
const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', this.mode === 'ios' ? 'Back' : '');

return (
<button
Expand Down

0 comments on commit eb0ff2f

Please sign in to comment.