from username to nickname

This commit is contained in:
Elisee ADJIGUIDI 2023-06-26 05:49:26 +02:00
parent 3d74296bb8
commit 9f323ee15d
3 changed files with 3 additions and 3 deletions

View File

@ -444,7 +444,7 @@ function Chats(){
}</option>
{users.filter((item) => !selectTags.some((tag) => tag.selectedOption === item.username)).map((item, index) => (
<option key={index} value={item.username}>
{item.username}
{item.nickname}
</option>
))}
</select>

View File

@ -122,7 +122,7 @@ const GameModal = ({ handleClose }: ModalGame) => {
<option value="">Select a user</option>
{users.map((user: User) => (
<option key={user.id} value={user.username}>
{user.username}
{user.nickname}
</option>
))}
</select>

View File

@ -300,7 +300,7 @@ const ModalSetting = ({ handleClose, convId, socket }: ModalSettingProps) => {
</option>
{users.map((item, index) => (
<option key={index} value={item.username}>
{item.username}
{item.nickname}
</option>
))}
</select>