Skip to content

Commit

Permalink
Merge pull request #7512 from mateusbra/aligned-header
Browse files Browse the repository at this point in the history
Aligned header
  • Loading branch information
mountiny authored Feb 2, 2022
2 parents ef91a04 + eb876ae commit ad87352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Header = props => (
</Text>
{/* If there's no subtitle then display a fragment to avoid an empty space which moves the main title */}
{_.isString(props.subtitle)
? <Text style={[styles.mutedTextLabel]}>{props.subtitle}</Text>
? Boolean(props.subtitle) && <Text style={[styles.mutedTextLabel]}>{props.subtitle}</Text>
: props.subtitle}
</View>
{props.shouldShowEnvironmentBadge && (
Expand Down

0 comments on commit ad87352

Please sign in to comment.