Skip to content

Commit c2cc15a

Browse files
committed
fix: typo
1 parent 7b62296 commit c2cc15a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/to/bitkit/viewmodels/TransferViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class TransferViewModel @Inject constructor(
124124
viewModelScope.launch {
125125
_spendingUiState.update { it.copy(isLoading = true) }
126126

127-
val minAmount = getMinnAmountToPurchase()
127+
val minAmount = getMinAmountToPurchase()
128128
if (_spendingUiState.value.satsAmount < minAmount) {
129129
setTransferEffect(
130130
TransferEffect.ToastError(
@@ -243,7 +243,7 @@ class TransferViewModel @Inject constructor(
243243
}
244244
}
245245

246-
private suspend fun getMinnAmountToPurchase(): Long {
246+
private suspend fun getMinAmountToPurchase(): Long {
247247
val fee = lightningRepo.calculateTotalFee(_spendingUiState.value.satsAmount.toULong()).getOrNull() ?: 0u
248248
return max((fee + maxLspFee).toLong(), Env.TransactionDefaults.dustLimit.toLong())
249249
}

0 commit comments

Comments
 (0)