Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7438 from brave/fix/7291
Browse files Browse the repository at this point in the history
Show default bookmark title for synced bookmarks
  • Loading branch information
bbondy committed Mar 2, 2017
2 parents 840165e + 57108ea commit da2755b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/renderer/components/addEditBookmarkHanger.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class AddEditBookmarkHanger extends ImmutableComponent {
: (typeof location === 'string' && location.trim().length > 0)
}
get displayBookmarkName () {
if (this.props.currentDetail.get('customTitle') !== undefined) {
const customTitle = this.props.currentDetail.get('customTitle')
if (customTitle !== undefined && customTitle !== '') {
return this.props.currentDetail.get('customTitle')
}
return this.props.currentDetail.get('title') || ''
Expand Down

0 comments on commit da2755b

Please sign in to comment.