-
Notifications
You must be signed in to change notification settings - Fork 45
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
ParaTimes: take into account fee amount when calc max button value #1353
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Deploying with Cloudflare Pages
|
de0248e
to
f1c258d
Compare
Codecov Report
@@ Coverage Diff @@
## master #1353 +/- ##
==========================================
+ Coverage 84.25% 84.44% +0.19%
==========================================
Files 142 142
Lines 3632 3652 +20
Branches 667 668 +1
==========================================
+ Hits 3060 3084 +24
+ Misses 572 568 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f1c258d
to
c2acf8c
Compare
@@ -12,6 +12,7 @@ export const initialState: ParaTimesState = { | |||
confirmTransfer: false, | |||
confirmTransferToValidator: false, | |||
confirmTransferToForeignAccount: false, | |||
defaultFeeAmount: '', |
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.
How come the default is in state and in TransactionForm? I only expected feeAmount
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.
feeAmount
is provided by user. defaultFee
value should not be visible in UI. With one prop feeAmount
we could have scenario like: user is not interacting with fee amount (advance field), advance to next step, click previous, and at this point feeAmount input would have a value of default fee, but user did not interact with an input at all.
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.
ow
bc7e73a
to
d5c4e98
Compare
d5c4e98
to
d3e5d01
Compare
Fix "insufficient balance to pay fees" error when using max button.