Skip to content
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

Conversation

alexjba
Copy link
Contributor

@alexjba alexjba commented Jul 6, 2023

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)

Screenshot 2023-07-06 at 17 31 49

Copy link
Member

@caybro caybro left a 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

@status-im-auto
Copy link
Member

status-im-auto commented Jul 6, 2023

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9ba205b #1 2023-07-06 14:37:58 ~4 min tests/imports 📄log
✔️ 9ba205b #1 2023-07-06 14:39:52 ~6 min tests/nim 📄log
✔️ 9ba205b #1 2023-07-06 14:41:19 ~8 min macos/aarch64 🍎dmg
✔️ 9ba205b #1 2023-07-06 14:45:45 ~12 min macos/x86_64 🍎dmg
✔️ 9ba205b #1 2023-07-06 14:48:27 ~15 min linux/x86_64 📦tgz
✔️ 9ba205b #1 2023-07-06 15:06:41 ~33 min windows/x86_64 💿exe
✔️ 9ba205b #1 2023-07-06 15:09:18 ~36 min tests/e2e 📄log
✔️ 7531fbf #2 2023-07-07 07:07:37 ~5 min tests/nim 📄log
✔️ 7531fbf #2 2023-07-07 07:08:03 ~5 min tests/imports 📄log
✔️ 7531fbf #2 2023-07-07 07:08:09 ~5 min macos/aarch64 🍎dmg
✔️ 7531fbf #2 2023-07-07 07:10:26 ~7 min macos/x86_64 🍎dmg
✔️ 7531fbf #2 2023-07-07 07:16:51 ~14 min linux/x86_64 📦tgz
✔️ 7531fbf #2 2023-07-07 07:30:44 ~28 min windows/x86_64 💿exe
✔️ 7531fbf #2 2023-07-07 07:38:08 ~35 min tests/e2e 📄log

@@ -309,7 +309,7 @@ StatusScrollView {

onTextChanged: {
const amount = parseInt(text)
if (Number.isNaN(amount) || !!errors)
if (Number.isNaN(amount) || (!!errors && Object.values(errors).length))
Copy link
Member

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.
@alexjba alexjba force-pushed the 11359-wrong-supply-and-remaining-values-when-preview-collectible-before-deployment branch from 9ba205b to 7531fbf Compare July 7, 2023 07:02
Copy link
Contributor

@endulab endulab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested.

@alexjba alexjba merged commit b710994 into master Jul 7, 2023
@alexjba alexjba deleted the 11359-wrong-supply-and-remaining-values-when-preview-collectible-before-deployment branch July 7, 2023 09:08
@endulab endulab mentioned this pull request Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong supply and remaining values when preview collectible/asset before deployment
5 participants