Skip to content

Commit 1cd7421

Browse files
committed
fix: remove comment
1 parent 36c8d85 commit 1cd7421

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -759,16 +759,16 @@ class AppViewModel @Inject constructor(
759759
private fun onScanNodeId(data: Scanner.NodeId) {
760760
val (url, network) = data
761761
val appNetwork = Env.network.toCoreNetworkType()
762-
// if (network != appNetwork) {
763-
// toast(
764-
// type = Toast.ToastType.WARNING,
765-
// title = context.getString(R.string.other__qr_error_network_header),
766-
// description = context.getString(R.string.other__qr_error_network_text)
767-
// .replace("{selectedNetwork}", appNetwork.name)
768-
// .replace("{dataNetwork}", network.name),
769-
// )
770-
// return
771-
// }
762+
if (network != appNetwork) {
763+
toast(
764+
type = Toast.ToastType.WARNING,
765+
title = context.getString(R.string.other__qr_error_network_header),
766+
description = context.getString(R.string.other__qr_error_network_text)
767+
.replace("{selectedNetwork}", appNetwork.name)
768+
.replace("{dataNetwork}", network.name),
769+
)
770+
return
771+
}
772772
hideSheet() // hide scan sheet if opened
773773
val nextRoute = Routes.ExternalConnection(url)
774774
mainScreenEffect(MainScreenEffect.Navigate(nextRoute))

0 commit comments

Comments
 (0)