diff --git a/modules/users/controllers/users/users.profile.controller.js b/modules/users/controllers/users/users.profile.controller.js index e2f988372..c7c0c09e6 100644 --- a/modules/users/controllers/users/users.profile.controller.js +++ b/modules/users/controllers/users/users.profile.controller.js @@ -61,9 +61,9 @@ exports.me = (req, res) => { email: escape(req.user.email), lastName: escape(req.user.lastName), firstName: escape(req.user.firstName), - bio: escape(req.user.bio), additionalProvidersData: req.user.additionalProvidersData, }; + if (req.user.bio) user.bio = escape(req.user.bio); } return responses.success(res, 'user get')(user); };