-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Supply amount in mint tokens preview #11439
fix: Supply amount in mint tokens preview #11439
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for the fix
Jenkins Builds
|
@@ -309,7 +309,7 @@ StatusScrollView { | |||
|
|||
onTextChanged: { | |||
const amount = parseInt(text) | |||
if (Number.isNaN(amount) || !!errors) | |||
if (Number.isNaN(amount) || (!!errors && Object.values(errors).length)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors
seems to be always valid object, so maybe !!error
check is not needed at all?
Check errors object for values before invalidating the supply amount.
9ba205b
to
7531fbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested.
What does the PR do
Closing #11359
Check
errors
object for values before invalidating the supply amount.Affected areas
Mint tokens
Screenshot of functionality (including design for comparison)