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

gateway ui fixes #218

Merged
merged 3 commits into from
Oct 6, 2023
Merged

gateway ui fixes #218

merged 3 commits into from
Oct 6, 2023

Conversation

okjodom
Copy link
Collaborator

@okjodom okjodom commented Oct 6, 2023

  • removes quotations around deposit address
  • shows gateway balance as sats (instead of msats)
  • shows the correct balance available for withdrawal
  • fixes number input in withdraw card
  • enables 'withdraw all button' though this should not be used?

  - shows the right amount withdrawable balance
  - fixes bug in amount input field
  - adds functionality to 'withdraw all' button
Copy link
Collaborator

@wbobeirne wbobeirne left a comment

Choose a reason for hiding this comment

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

Ahhh, much better.

Comment on lines +97 to +99
onChange={(value) => {
value && setAmount(parseInt(value));
}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would avoid attempting to parse an int in state, since inputs work only on strings. We should probably keep this as a string and only parse when we're performing numeric operations. This can cause issues with sufficiently large numbers

Screenshot 2023-10-06 at 8 04 13 AM

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is no worse than it currently is though, so it's fine

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I see! 👌🏿

@wbobeirne wbobeirne merged commit b654db7 into fedimint:master Oct 6, 2023
1 check passed
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.

None yet

2 participants