mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 15:16:09 -05:00
Temp fix logged in user missing discordName
This commit is contained in:
@@ -14,7 +14,10 @@ export function Message({
|
||||
return (
|
||||
<li className="chat__message">
|
||||
<div className="chat__message__message-header">
|
||||
<div className="chat__message__sender">{data.sender.discordName}</div>
|
||||
<div className="chat__message__sender">
|
||||
{/* TODO: */}
|
||||
{data.sender.discordName ?? ""}
|
||||
</div>
|
||||
{userInfo && (
|
||||
<div className="chat__message__extra-info">{userInfo}</div>
|
||||
)}
|
||||
|
||||
@@ -47,7 +47,8 @@ export function Chat({
|
||||
content: sentMessage,
|
||||
sender: {
|
||||
id: user.id,
|
||||
discordName: user.discordName,
|
||||
// TODO:
|
||||
discordName: user.discordName!,
|
||||
},
|
||||
}}
|
||||
userInfo={userInfos[user.id]}
|
||||
|
||||
@@ -39,7 +39,9 @@ export const action: ActionFunction = async ({ request, context }) => {
|
||||
roomId: messageFromDb.roomId,
|
||||
sender: {
|
||||
id: user.id,
|
||||
discordName: user.discordName,
|
||||
// TODO: fix
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
discordName: user.discordName!,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -27,7 +27,8 @@ export const LoggedInUserSchema = z
|
||||
id: z.string(),
|
||||
discordId: z.string(),
|
||||
discordAvatar: z.string().nullable(),
|
||||
discordName: z.string(),
|
||||
// TODO: fix
|
||||
discordName: z.string().nullish(),
|
||||
})
|
||||
.nullish(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user