File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/to/bitkit/viewmodels Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ class AppViewModel @Inject constructor(
341341 }
342342 }
343343
344- private fun onAmountChange (amount : ULong ) {
344+ private suspend fun onAmountChange (amount : ULong ) {
345345 _sendUiState .update {
346346 it.copy(
347347 amount = amount,
@@ -395,7 +395,7 @@ class AppViewModel @Inject constructor(
395395 }
396396 }
397397
398- private fun onPaymentMethodSwitch () {
398+ private suspend fun onPaymentMethodSwitch () {
399399 val nextPaymentMethod = when (_sendUiState .value.payMethod) {
400400 SendMethod .ONCHAIN -> SendMethod .LIGHTNING
401401 SendMethod .LIGHTNING -> SendMethod .ONCHAIN
@@ -442,7 +442,7 @@ class AppViewModel @Inject constructor(
442442 setSendEffect(SendEffect .NavigateToConfirm )
443443 }
444444
445- private fun validateAmount (
445+ private suspend fun validateAmount (
446446 amount : ULong ,
447447 payMethod : SendMethod = _sendUiState .value.payMethod,
448448 ): Boolean {
You can’t perform that action at this time.
0 commit comments