We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b54aa54 commit c408ffbCopy full SHA for c408ffb
client/pages/user/index.js
@@ -83,7 +83,9 @@ export default async function User({ userId }) {
83
: ''}
84
</div>
85
<div className='socials' onclick={(e) => e.target.dataset.href && Router.loadUrl(e.target.dataset.href)}>
86
- <button type='button' title='email' className='icon mail' data-href={`mailto:${user.email}`} />
+ {shouldShowSensitiveInfo && (
87
+ <button type='button' title='email' className='icon mail' data-href={`mailto:${user.email}`} />
88
+ )}
89
{user.github && (
90
<button type='button' title='go to github account' className='icon github' data-href={`https://github.com/${user.github}`} />
91
)}
0 commit comments