Skip to content

Commit

Permalink
Fix bug with closing a game too fast after voiding it.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed May 1, 2019
1 parent 4bc46d8 commit 5936d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models/challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -2356,7 +2356,9 @@ class Challenge {

await Discord.queue(`The match at ${this.channel} has been voided. Please close the channel.`, Discord.alertsChannel);

await this.updateTopic();
if (this.channel) {
await this.updateTopic();
}
}

if (this.details.dateConfirmed && this.details.dateClosed) {
Expand Down

0 comments on commit 5936d89

Please sign in to comment.