Skip to content

Commit eb6e25f

Browse files
committed
chore: case
1 parent 44618b1 commit eb6e25f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ class AppViewModel @Inject constructor(
713713

714714
when (val decoded = scanResult.getOrNull()) {
715715
is Scanner.Lightning -> validateLightningInvoice(decoded.invoice)
716-
is Scanner.OnChain -> validateOnchainAddress(decoded.invoice)
716+
is Scanner.OnChain -> validateOnChainAddress(decoded.invoice)
717717
else -> _sendUiState.update { it.copy(isAddressInputValid = true) }
718718
}
719719
}
@@ -743,7 +743,7 @@ class AppViewModel @Inject constructor(
743743
_sendUiState.update { it.copy(isAddressInputValid = true) }
744744
}
745745

746-
private fun validateOnchainAddress(invoice: OnChainInvoice) {
746+
private fun validateOnChainAddress(invoice: OnChainInvoice) {
747747
// Check network mismatch
748748
val addressNetwork = NetworkValidationHelper.getAddressNetwork(invoice.address)
749749
if (NetworkValidationHelper.isNetworkMismatch(addressNetwork, Env.network)) {

0 commit comments

Comments
 (0)