Skip to content

Commit 68565cf

Browse files
authored
fix conditions (#2508)
1 parent 5f26ba2 commit 68565cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/incubator/Dialog/DialogHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ const DialogHeader = (props: DialogHeaderProps = {}) => {
3838
if (!isEmpty(title) || !isEmpty(subtitle)) {
3939
return (
4040
<Container onPress={onPress} center flex>
41-
{title && (
41+
{!isEmpty(title) && (
4242
<Text $textDefault {...titleProps} marginB-s3 style={titleStyle}>
4343
{title}
4444
</Text>
4545
)}
46-
{subtitle && (
46+
{!isEmpty(subtitle) && (
4747
<Text $textDefault {...subtitleProps} marginB-s3 style={subtitleStyle}>
4848
{subtitle}
4949
</Text>

0 commit comments

Comments
 (0)