Skip to content

Commit 1eee6a9

Browse files
committed
fix: remove mainScreenEffect from LaunchEffect key
1 parent d0a4b4e commit 1eee6a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/src/main/java/to/bitkit/ui/ContentView.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import kotlinx.coroutines.delay
2929
import kotlinx.coroutines.launch
3030
import kotlinx.serialization.Serializable
3131
import to.bitkit.models.NewTransactionSheetDetails
32-
import to.bitkit.models.NewTransactionSheetType
3332
import to.bitkit.models.NodeLifecycleState
3433
import to.bitkit.ui.components.BottomSheetType
3534
import to.bitkit.ui.onboarding.InitializingWalletView
@@ -59,7 +58,6 @@ import to.bitkit.ui.screens.transfer.external.ExternalSuccessScreen
5958
import to.bitkit.ui.screens.wallets.HomeScreen
6059
import to.bitkit.ui.screens.wallets.activity.ActivityItemScreen
6160
import to.bitkit.ui.screens.wallets.activity.AllActivityScreen
62-
import to.bitkit.ui.screens.wallets.send.SendRoute
6361
import to.bitkit.ui.settings.BackupSettingsScreen
6462
import to.bitkit.ui.settings.BlocktankRegtestScreen
6563
import to.bitkit.ui.settings.BlocktankRegtestViewModel
@@ -84,7 +82,6 @@ import to.bitkit.viewmodels.BlocktankViewModel
8482
import to.bitkit.viewmodels.CurrencyViewModel
8583
import to.bitkit.viewmodels.ExternalNodeViewModel
8684
import to.bitkit.viewmodels.MainScreenEffect
87-
import to.bitkit.viewmodels.SendEffect
8885
import to.bitkit.viewmodels.TransferViewModel
8986
import to.bitkit.viewmodels.WalletViewModel
9087

@@ -142,7 +139,7 @@ fun ContentView(
142139
walletViewModel.observeLdkWallet()
143140
}
144141

145-
LaunchedEffect(appViewModel.mainScreenEffect) {
142+
LaunchedEffect(appViewModel) {
146143
appViewModel.mainScreenEffect.collect {
147144
when (it) {
148145
is MainScreenEffect.NavigateActivityDetail -> navController.navigate(Routes.ActivityItem(it.activityId))

0 commit comments

Comments
 (0)