Fixed the "are you sure you wnat to leave" prompt showing repeatedly when the button wasn't clicked

This commit is contained in:
Christian 'ketura' McCarty
2023-08-12 21:38:03 -05:00
parent 665bdfa7d4
commit 2e17df3ebf

View File

@@ -503,9 +503,10 @@ var GempLotrHallUI = Class.extend({
function(tourneyInfo) {
var tourneyId = tournament.getAttribute("id");
var tourneyName = tournament.getAttribute("queue");
let isExecuted = confirm("Are you sure you want to resign from the " + tourneyName + " tournament? This cannot be undone.");
return function () {
let isExecuted = confirm("Are you sure you want to resign from the " + tourneyName + " tournament? This cannot be undone.");
if(isExecuted) {
that.comm.dropFromTournament(tournamentId, function (xml) {
that.processResponse(xml);