fix: Supply amount in mint tokens preview

Check errors object for values before invalidating the supply amount.
This commit is contained in:
Alex Jbanca 2023-07-06 17:30:14 +03:00 committed by Alex Jbanca
parent 6b42414155
commit b710994bee
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ StatusScrollView {
onTextChanged: {
const amount = parseInt(text)
if (Number.isNaN(amount) || !!errors)
if (Number.isNaN(amount) || Object.values(errors).length)
return
if(root.isAssetView)