[BUGFIX] Use a proper source of headerBackTitle (#2007)

This commit is contained in:
Alexey
2017-06-28 19:51:43 +02:00
committed by Satyajit Sahoo
parent 661d01dc54
commit 075902147d

View File

@@ -61,7 +61,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
if (!lastScene) {
return null;
}
const { headerBackTitle } = this.props.getScreenDetails(lastScene).options;
const { headerBackTitle } = this.props.getScreenDetails(scene).options;
if (headerBackTitle || headerBackTitle === null) {
return headerBackTitle;
}