new channel creating and editing #4445

Merged
neb-b merged 15 commits from feat-newChannelCreate into master 2020-07-03 17:09:27 +02:00
Showing only changes of commit d66f2cd604 - Show all commits

View file

@ -119,7 +119,8 @@ function ChannelForm(props: Props) {
function handleBidChange(bid: number) {
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 });
if (bid <= 0.0 || isNaN(bid)) {