Skip to content

Commit 607783a

Browse files
committed
fix 'undefined' in profile
1 parent ab75fe2 commit 607783a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

instances/widgets.treasury-factory.near/widget/components/Profile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const ReceiverAccountComponent = (
142142
)}
143143

144144
<div className="d-flex flex-column" style={{ minWidth: 0, flex: 1 }}>
145-
{displayName && (
145+
{displayName && name && (
146146
<div className="mb-0 text-truncate" title={name}>
147147
{name}
148148
</div>

web4/public_html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@
784784
<button>
785785
<img src="${imageSrc}" />
786786
<div class="text-align-left">
787-
<h6> ${name} </h6>
787+
${name ?`<h6> ${name} </h6>` : ''}
788788
<div style="opacity: 0.5; font-size: 12px"> ${accountId} </div>
789789
</div>
790790
<svg

0 commit comments

Comments
 (0)