kopia lustrzana https://github.com/vitorpamplona/amethyst
Adjusting default zaps for the Zap the Devs button
rodzic
372eaabb50
commit
39c9b4d50f
|
@ -491,7 +491,7 @@ fun customZapClick(
|
||||||
} else if (accountViewModel.account.zapAmountChoices.size == 1) {
|
} else if (accountViewModel.account.zapAmountChoices.size == 1) {
|
||||||
val amount = accountViewModel.account.zapAmountChoices.first()
|
val amount = accountViewModel.account.zapAmountChoices.first()
|
||||||
|
|
||||||
if (amount > 600) {
|
if (amount > 1100) {
|
||||||
accountViewModel.zap(
|
accountViewModel.zap(
|
||||||
baseNote,
|
baseNote,
|
||||||
amount * 1000,
|
amount * 1000,
|
||||||
|
@ -509,7 +509,7 @@ fun customZapClick(
|
||||||
// recommends amounts for a monthly release.
|
// recommends amounts for a monthly release.
|
||||||
}
|
}
|
||||||
} else if (accountViewModel.account.zapAmountChoices.size > 1) {
|
} else if (accountViewModel.account.zapAmountChoices.size > 1) {
|
||||||
if (accountViewModel.account.zapAmountChoices.any { it > 600 }) {
|
if (accountViewModel.account.zapAmountChoices.any { it > 1100 }) {
|
||||||
onMultipleChoices(accountViewModel.account.zapAmountChoices)
|
onMultipleChoices(accountViewModel.account.zapAmountChoices)
|
||||||
} else {
|
} else {
|
||||||
onMultipleChoices(listOf(1000L, 5_000L, 10_000L))
|
onMultipleChoices(listOf(1000L, 5_000L, 10_000L))
|
||||||
|
|
Ładowanie…
Reference in New Issue