File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/screens/Wallets/Receive Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const ReceiveConnect = ({
4141 const { maxChannelSizeSat } = blocktank . options ;
4242 const minChannelSize = Math . round ( amount * 2.5 ) ;
4343 const maxChannelSize = Math . round ( maxChannelSizeSat / 2 ) ;
44- const channelSize = Math . max ( minChannelSize , maxChannelSize ) ;
44+ const channelSize = Math . min ( minChannelSize , maxChannelSize ) ;
4545 const lspBalance = channelSize - amount ;
4646 const payAmount = amount - feeEstimate ;
4747 const displayFee = useDisplayValues ( feeEstimate ) ;
@@ -76,7 +76,7 @@ const ReceiveConnect = ({
7676 const onContinue = async ( ) : Promise < void > => {
7777 setIsLoading ( true ) ;
7878 const cJitEntryResponse = await createCJitEntry ( {
79- channelSize : channelSize ,
79+ channelSize,
8080 invoiceAmount : amount ,
8181 invoiceDescription : message ,
8282 } ) ;
@@ -86,6 +86,7 @@ const ReceiveConnect = ({
8686 title : t ( 'receive_cjit_error' ) ,
8787 description : cJitEntryResponse . error . message ,
8888 } ) ;
89+ setIsLoading ( false ) ;
8990 return ;
9091 }
9192 const order = cJitEntryResponse . value ;
You can’t perform that action at this time.
0 commit comments