Fix error toast on award modal success.

master
Snakes 2022-10-16 18:22:00 -04:00
parent 1114590cc7
commit 340ffdff76
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 1 additions and 1 deletions

View File

@ -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;