X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fusers%2FBox.js;h=c0d011bc106d4060dcbfd222865b62ed3d1e2fad;hb=0b25d0e8a22a13f09efbeab94d0b353ae603bc16;hp=70006cb13f2998df557130cbb0336efd7b49f597;hpb=c5b15dc5518c627daa4f02f653ff900e4fe13db7;p=alttp.git
diff --git a/resources/js/components/users/Box.js b/resources/js/components/users/Box.js
index 70006cb..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 ?
+ {discriminator ? user.username : getUserName(user)}
+ {discriminator && user.discriminator && user.discriminator !== '0' ?
{'#'}
{user.discriminator}