MattyIce / steem-engine

Website for the Steem Smart Contracts project
6 stars 22 forks source link

BUY on market not working. #66

Open krischik opened 5 years ago

krischik commented 5 years ago

The BUY button on the Steem Engine Market isn't working. I get the following error message:

2VM556:211 Uncaught TypeError: Cannot read property 'balance' of undefined
    at btnSubmitOrder (<anonymous>:211:96)
    at HTMLButtonElement.onclick (?p=market&t=ENG:1)

here:

        if (type === 'buy' && (parseFloat(quantity) * parseFloat(price)) > data.user_steemp_balance.balance) {
            $('#' + type + 'Total').addClass("is-invalid");
            isValid = false;
        }

Looking at parseFloat — could that be and i18N issue?

image