Fix settings screen not showing joinable teams (#2500)

This commit is contained in:
Elias Nahum 2019-01-10 09:11:05 -03:00 committed by GitHub
parent 9177f95fed
commit 8a8aa5e992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ class Settings extends PureComponent {
currentUrl: PropTypes.string.isRequired,
errors: PropTypes.array.isRequired,
intl: intlShape.isRequired,
joinableTeams: PropTypes.object.isRequired,
joinableTeams: PropTypes.array.isRequired,
navigator: PropTypes.object,
theme: PropTypes.object,
};
@ -215,7 +215,7 @@ class Settings extends PureComponent {
render() {
const {config, joinableTeams, theme} = this.props;
const style = getStyleSheet(theme);
const showTeams = Object.keys(joinableTeams).length > 0;
const showTeams = joinableTeams.length > 0;
const showHelp = isValidUrl(config.HelpLink);
const showArrow = Platform.OS === 'ios';