We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f442bb commit 3d7fce9Copy full SHA for 3d7fce9
app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt
@@ -835,15 +835,17 @@ class AppViewModel @Inject constructor(
835
return
836
}
837
838
+ val hasAmount = minSendable == maxSendable && minSendable > 0u
839
+ val initialAmount = if (hasAmount) minSendable else 0u
840
+
841
_sendUiState.update {
842
it.copy(
- amount = minSendable,
843
+ amount = initialAmount,
844
payMethod = SendMethod.LIGHTNING,
845
lnurl = LnurlParams.LnurlPay(data),
846
)
847
848
- val hasAmount = minSendable == maxSendable && minSendable > 0u
849
if (hasAmount) {
850
Logger.info("Found amount $$minSendable in lnurlPay, proceeding with payment", context = TAG)
851
0 commit comments