Fix new server icon

This commit is contained in:
Diego Mello 2020-05-27 11:11:33 -03:00
parent 06684cbaf6
commit cabf63012f
1 changed files with 5 additions and 3 deletions

View File

@ -81,9 +81,11 @@ class NewServerView extends React.Component {
constructor(props) {
super(props);
props.navigation.setOptions({
headerLeft: () => <CloseModalButton navigation={props.navigation} onPress={this.close} testID='new-server-view-close' />
});
if (props.previousServer) {
props.navigation.setOptions({
headerLeft: () => <CloseModalButton navigation={props.navigation} onPress={this.close} testID='new-server-view-close' />
});
}
// Cancel
this.options = [I18n.t('Cancel')];