From 340ffdff76a84a2dc3c65f241f9421051d91424d Mon Sep 17 00:00:00 2001 From: TLSM Date: Sun, 16 Oct 2022 18:22:00 -0400 Subject: [PATCH] Fix error toast on award modal success. --- files/assets/js/award_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/award_modal.js b/files/assets/js/award_modal.js index 391ef30ab..e51c60c40 100644 --- a/files/assets/js/award_modal.js +++ b/files/assets/js/award_modal.js @@ -137,7 +137,7 @@ function buy(mb) { let data try {data = JSON.parse(xhr[0].response)} catch(e) {console.log(e)} - success = xhr[0].status >= 200 && xhr.status < 300; + success = xhr[0].status >= 200 && xhr[0].status < 300; showToast(success, getMessageFromJsonData(success, data), true); if (success) { document.getElementById('giveaward').disabled=false;