We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb24a7d commit c56918aCopy full SHA for c56918a
src/containers/greeting/Greeting.js
@@ -17,9 +17,11 @@ export default function Greeting(props) {
17
<h1 className="greeting-text" style={{ color: theme.text }}>
18
{greeting.title}
19
</h1>
20
- <h2 className="greeting-nickname" style={{ color: theme.text }}>
21
- ( {greeting.nickname} )
22
- </h2>
+ {greeting.nickname && (
+ <h2 className="greeting-nickname" style={{ color: theme.text }}>
+ ( {greeting.nickname} )
23
+ </h2>
24
+ )}
25
<p
26
className="greeting-text-p subTitle"
27
style={{ color: theme.secondaryText }}
0 commit comments