Skip to content

Commit a35c561

Browse files
Update src/components/sidebar/index.js
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 0fa9361 commit a35c561

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

src/components/sidebar/index.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,23 @@ function create($container, $toggler) {
125125
if (menuName) {
126126
menuName.content = (
127127
<div style={{ display: "flex" }}>
128-
{Boolean(userInfo.verified) && (
129-
<span className="icon verified"></span>
130-
)}
131-
{userInfo.name}
132-
{Boolean(userInfo.acode_pro) && (
133-
<span className="badge">Pro</span>
134-
)}
135-
</div>
136-
);
137-
}
128+
if (menuName) {
129+
menuName.content = (
130+
<div style={{ display: "flex" }}>
131+
{Boolean(user.verified) && (
132+
<span className="icon verified"></span>
133+
)}
134+
{user.name}
135+
{Boolean(user.acode_pro) && (
136+
<span className="badge">Pro</span>
137+
)}
138+
</div>
139+
);
140+
}
138141

139-
if (menuEmail) {
140-
menuEmail.textContent = userInfo.email || "";
142+
if (menuEmail) {
143+
menuEmail.textContent = user.email || "";
144+
}
141145
}
142146

143147
setTimeout(() => {

0 commit comments

Comments
 (0)