Skip to content

Commit 5e7e809

Browse files
committed
fix: type error
1 parent 2261982 commit 5e7e809

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/redirect.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ export const handleRedirect = async (req: NextRequest) => {
4949
id: userData.id,
5050
name: `${userData.username}`,
5151
email: userData.email,
52-
avatar: userData.avatar
53-
? `https://cdn.discordapp.com/avatars/${userData.id}/${userData.avatar}.png`
54-
: null,
52+
avatar: `https://cdn.discordapp.com/avatars/${userData.id}/${userData.avatar}.png`
5553
},
5654
expires: new Date(Date.now() + response.expiresIn * 1000).toISOString(),
5755
};

0 commit comments

Comments
 (0)