forked from MarseyWorld/MarseyWorld
Fix error toast on award modal success.
parent
1114590cc7
commit
340ffdff76
|
@ -137,7 +137,7 @@ function buy(mb) {
|
||||||
let data
|
let data
|
||||||
try {data = JSON.parse(xhr[0].response)}
|
try {data = JSON.parse(xhr[0].response)}
|
||||||
catch(e) {console.log(e)}
|
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);
|
showToast(success, getMessageFromJsonData(success, data), true);
|
||||||
if (success) {
|
if (success) {
|
||||||
document.getElementById('giveaward').disabled=false;
|
document.getElementById('giveaward').disabled=false;
|
||||||
|
|
Loading…
Reference in New Issue