Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit 34b9dd8

Browse files
committed
fix: crash when user profile is cleared
1 parent fcb9115 commit 34b9dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Input.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class Input extends Component {
215215

216216
<p className={`input_commentAs ${showLoggedInAs ? 'showLoggedInAs' : ''}`}>
217217
{(!noWeb3 && !currentUserAddr) ? 'You will log in upon commenting' : ''}
218-
{currentUserAddr ? `Commenting as ${currentUser3BoxProfile.name || shortenEthAddr(currentUserAddr)}` : ''}
218+
{(currentUserAddr && currentUser3BoxProfile) ? `Commenting as ${currentUser3BoxProfile.name || shortenEthAddr(currentUserAddr)}` : ''}
219219
{noWeb3 ? 'Cannot comment without Web3' : ''}
220220
</p>
221221

0 commit comments

Comments
 (0)