mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
fix(inbox): more UN display fixes
This commit is contained in:
@@ -220,7 +220,7 @@ schema.statics.transformJSONUser = function transformJSONUser (jsonUser, addComp
|
||||
jsonUser.id = jsonUser._id;
|
||||
|
||||
// Remove username if not verified
|
||||
if (!jsonUser.flags.verifiedUsername) delete jsonUser.auth.local.username;
|
||||
if (!jsonUser.flags.verifiedUsername) jsonUser.auth.local.username = null;
|
||||
|
||||
if (addComputedStats) this.addComputedStatsToJSONObj(jsonUser.stats, jsonUser);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user