mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 04:38:55 +00:00
fix(model): don't break if auth.local undefined
This commit is contained in:
parent
23815e89e1
commit
ad0ede8d01
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ export function messageDefaults (msg, user) {
|
|||
contributor: user.contributor && user.contributor.toObject(),
|
||||
backer: user.backer && user.backer.toObject(),
|
||||
user: user.profile.name,
|
||||
username: user.auth.local.username,
|
||||
username: user.auth && user.auth.local && user.auth.local.username,
|
||||
});
|
||||
} else {
|
||||
message.uuid = 'system';
|
||||
|
|
|
|||
Loading…
Reference in a new issue