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