Skip to content

Commit

Permalink
Fix inconsistent screen title (#1288)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrudge authored Mar 8, 2018
1 parent 46b4618 commit 442a2f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export default class Screen {
}

getTitle(m) {
if (this.isFirstScreen(m)) {
return i18n.str(m, 'title');
//loading screen will never show a title
if (this.name === 'loading') {
return '';
}

return this.getScreenTitle(m);
return this.getScreenTitle(m) || i18n.str(m, 'title');
}

getScreenTitle(m) {
Expand Down

0 comments on commit 442a2f3

Please sign in to comment.