fix "give award" button not getting grayed-out correctly

master
Aevann1 2022-11-07 07:41:57 +02:00
parent a66add3897
commit 5be668a049
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ function buy(mb) {
const xhr = createXhrWithFormKey(url);
if(typeof data === 'object' && data !== null) {
for(let k of Object.keys(data)) {
form.append(k, data[k]);
form.append(k, data[k]);
}
}
xhr[0].onload = function() {

View File

@ -33,7 +33,7 @@ function createXhrWithFormKey(url, method="POST", form=new FormData()) {
}
function postToast(t, url, data, extraActionsOnSuccess, method="POST") {
const isShopConfirm = t.id.startsWith('buy1-') || t.id.startsWith('buy2-')
const isShopConfirm = t.id.startsWith('buy1-') || t.id.startsWith('buy2-') || t.id.startsWith('giveaward')
if (!isShopConfirm)
{