Skip to content

Commit

Permalink
fix(core): verified undefined (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams authored May 11, 2024
1 parent cb38286 commit bfd7773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const getPlayerDatas = async (interaction, param, steam, discord = false, faceit
let user = userGuilds.find(e => !e.guildId)
if (!user) user = userGuilds.find(e => e.guildId === interaction.guild.id)

verified = user.verified ?? false
verified = user?.verified ?? false

if (user) return { param: user.faceitId, steam: false, discord: false, faceitId: true, verified: verified }
}
Expand Down

0 comments on commit bfd7773

Please sign in to comment.