Skip to content

Commit

Permalink
fix: early return if user has no rank
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Nov 10, 2024
1 parent 03a986c commit 0ca6477
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/src/forum/addUserInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export default function () {
const header_node = vnode.children.find(matchClass('PostUser-name'));
const amt = Number(setting('rankAmt')) ?? user.ranks().length;

if (!user.ranks()) return;

header_node.children = header_node.children
.concat(
user
Expand Down

0 comments on commit 0ca6477

Please sign in to comment.