X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fusers%2FBox.js;h=c0d011bc106d4060dcbfd222865b62ed3d1e2fad;hb=532dea7c62f3619a04cd8d7aa895f8db1f3f98d2;hp=fd5814f6216896baa4dcdda3d7ee784c394b917d;hpb=ff1f7c9fc9660ec838fb626cf6543201531020bb;p=alttp.git
diff --git a/resources/js/components/users/Box.js b/resources/js/components/users/Box.js
index fd5814f..c0d011b 100644
--- a/resources/js/components/users/Box.js
+++ b/resources/js/components/users/Box.js
@@ -4,7 +4,7 @@ import { Button } from 'react-bootstrap';
import { withTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
-import { getAvatarUrl } from '../../helpers/User';
+import { getAvatarUrl, getUserName } from '../../helpers/User';
import i18n from '../../i18n';
const Box = ({ discriminator, noLink, user }) => {
@@ -16,8 +16,8 @@ const Box = ({ discriminator, noLink, user }) => {
const content = <>
- {discriminator || !user.nickname ? user.username : user.nickname}
- {discriminator && user.discriminator ?
+ {discriminator ? user.username : getUserName(user)}
+ {discriminator && user.discriminator && user.discriminator !== '0' ?
{'#'}
{user.discriminator}