mirror of
https://github.com/ibratabian17/OpenParty.git
synced 2026-01-15 14:22:54 -03:00
make sure the matchedProfileId has proper format
This commit is contained in:
@@ -213,7 +213,7 @@ exports.initroute = (app) => {
|
||||
// Find matching profile by name or ticket
|
||||
const matchedProfileId = Object.keys(decryptedData).find(profileId => {
|
||||
const userProfile = decryptedData[profileId];
|
||||
return userProfile.name === content.name || userProfile.ticket === ticket;
|
||||
return userProfile.name && (userProfile.name === content.name || userProfile.ticket === ticket);
|
||||
});
|
||||
|
||||
if (matchedProfileId) {
|
||||
|
||||
Reference in New Issue
Block a user