Skip to content

Commit

Permalink
aligned header
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusbra committed Feb 1, 2022
1 parent d74f7a4 commit eb876ae
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 eb876ae

Please sign in to comment.