diff --git a/server/routes/profile/profileRoute.ts b/server/routes/profile/profileRoute.ts index a7edcfd..296f6f2 100644 --- a/server/routes/profile/profileRoute.ts +++ b/server/routes/profile/profileRoute.ts @@ -10,7 +10,8 @@ profileRouter.get('/users/:username', async (req, res, next) => { let streamerData = await scraper.getStreamerData(username) .catch(next) - res.send(streamerData) + if (streamerData) + res.send(streamerData) }) export default profileRouter \ No newline at end of file