mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 04:38:55 +00:00
fix: Default message to '' when not passed in sendGift route
This commit is contained in:
parent
eaea55687b
commit
f5d4eba292
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ api.sendMessage = function(user, member, data){
|
|||
var monthLabel = monthAmount > 1 ? "months" : "month";
|
||||
msg += monthAmount + " " + monthLabel + " of subscription!`";
|
||||
}
|
||||
msg += data.message;
|
||||
msg += data.message ? data.message : '';
|
||||
}
|
||||
shared.refPush(member.inbox.messages, groups.chatDefaults(msg, user));
|
||||
member.inbox.newMessages++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue