File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export default ({
92
92
< div className = { 'custom-input-container' } >
93
93
{ type === 'number' ? (
94
94
< NumberFormat
95
+ inputMode = 'numeric'
95
96
className = { 'custom-input' }
96
97
thousandSeparator = { ' ' }
97
98
id = { id }
Original file line number Diff line number Diff line change @@ -152,6 +152,10 @@ function ConfigurePage(): JSX.Element {
152
152
errors . localBalance = `Max spending balance is ${ numberWithSpaces (
153
153
max_chan_spending
154
154
) } sats ($${ max_chan_spending_usd } )`;
155
+ } else if ( Number ( localBalance ) + Number ( remoteBalance ) > product . max_channel_size ) {
156
+ errors . localBalance = `Total channel capacity is ${ numberWithSpaces (
157
+ product . max_channel_size
158
+ ) } sats`;
155
159
} else if ( Number ( localBalance ) < product . min_channel_size ) {
156
160
// TODO remove this check if the min spending cap check is removed from API
157
161
errors . localBalance = `Minimum spending capacity is ${ numberWithSpaces (
You can’t perform that action at this time.
0 commit comments