From d66f2cd60438f23d94e586a6fa849823ecaedb1f Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 3 Jul 2020 10:23:49 -0400 Subject: [PATCH] fix bid amount --- ui/component/channelEdit/view.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/component/channelEdit/view.jsx b/ui/component/channelEdit/view.jsx index e37365b39..a73e223e8 100644 --- a/ui/component/channelEdit/view.jsx +++ b/ui/component/channelEdit/view.jsx @@ -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)) {