Fix regression in modular back button

This commit is contained in:
Brent Vatne
2018-02-19 14:46:25 -08:00
parent 3ca47ec778
commit da6a960bb1
2 changed files with 6 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ class ModularHeaderBackButton extends React.PureComponent {
// TODO: When we've sorted out measuring in the header, let's revisit this.
// This is clearly a bad workaround.
if (backButtonTitle.length > 8) {
if (backButtonTitle && backButtonTitle.length > 8) {
backButtonTitle = truncatedTitle;
}