Fix error not being able to delete your vote when selecting index=0
This commit is contained in:
parent
0fb3eb521c
commit
53a6e7f350
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ export async function deleteVote(data: any): Promise<object> {
|
|||
let userID = data.member.user.id;
|
||||
let gID = data.guild_id;
|
||||
|
||||
if (!db[gID].bracket.users[userID]) {
|
||||
// Assert the user has voted
|
||||
if (db[gID].bracket.users[userID] == null) {
|
||||
return {
|
||||
type: 4,
|
||||
data: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue