fix buying in award modal

master
Aevann 2023-01-04 21:06:00 +02:00
parent 925cdcad3a
commit cec4cc8530
1 changed files with 2 additions and 2 deletions

View File

@ -97,13 +97,13 @@ function pick(kind, price, coins, marseybux) {
marseybux = parseInt(marseybux)
const buy1 = document.getElementById('buy1')
if (coins >= price && kind != "grass")
if (marseybux >= price && kind != "grass")
buy1.disabled=false;
else
buy1.disabled=true;
const buy2 = document.getElementById('buy2')
if (marseybux >= price && kind != "benefactor")
if (coins >= price && kind != "benefactor")
buy2.disabled=false;
else
buy2.disabled=true;