Uncaught ReferenceError: then is not defined at Object.BuyTokens at HTMLButtonELement.onsubmit
My index.html file is exact as in tutorial.
I have no idea how to resolve it. Besides whole code is a bit outdated and required modifying it a lot this one is beyond my skills, help would be highly appreciated.
When calling buyTokens function i get error:
Uncaught ReferenceError: then is not defined at Object.BuyTokens at HTMLButtonELement.onsubmit
My index.html file is exact as in tutorial.
I have no idea how to resolve it. Besides whole code is a bit outdated and required modifying it a lot this one is beyond my skills, help would be highly appreciated.