ui: Ask confirmation before open hint

This commit is contained in:
nemunaire 2023-04-05 18:17:44 +02:00
parent bf758e7fe5
commit b79fe47f00

View File

@ -46,6 +46,10 @@
}
async function openHint(hint) {
if (!confirm("Êtes-vous sûr de vouloir utiliser " + (hint.cost * $settings.hintCurrentCoefficient) + " points pour dévoiler cet indice ?")) {
return;
}
hints_submitted[hint.id] = true;
hinterror = "";