fix bid amount
This commit is contained in:
parent
1f32d454db
commit
d66f2cd604
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ function ChannelForm(props: Props) {
|
||||||
|
|
||||||
function handleBidChange(bid: number) {
|
function handleBidChange(bid: number) {
|
||||||
const { balance, amount } = props;
|
const { balance, amount } = props;
|
||||||
const totalAvailableBidAmount = parseFloat(amount) || 0.0 + parseFloat(balance) || 0.0;
|
const totalAvailableBidAmount = (parseFloat(amount) || 0.0) + (parseFloat(balance) || 0.0);
|
||||||
|
|
||||||
setParams({ ...params, amount: bid });
|
setParams({ ...params, amount: bid });
|
||||||
|
|
||||||
if (bid <= 0.0 || isNaN(bid)) {
|
if (bid <= 0.0 || isNaN(bid)) {
|
||||||
|
|
Loading…
Reference in a new issue