Skip to content

Commit 63897cf

Browse files
committed
fix: sheet navigation
1 parent b25be02 commit 63897cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ import to.bitkit.repositories.PreActivityMetadataRepo
9292
import to.bitkit.repositories.TransferRepo
9393
import to.bitkit.repositories.WalletRepo
9494
import to.bitkit.services.AppUpdaterService
95-
import to.bitkit.ui.Routes
9695
import to.bitkit.ui.components.TimedSheetType
9796
import to.bitkit.ui.nav.DeepLinkPatterns
9897
import to.bitkit.ui.nav.Routes
@@ -234,8 +233,8 @@ class AppViewModel @Inject constructor(
234233
}
235234
viewModelScope.launch {
236235
timedSheetManager.currentSheet.collect { sheetType ->
237-
if (sheetType != null) {
238-
_currentSheet.update { Sheet.TimedSheet(sheetType) }
236+
sheetType?.let {
237+
mainScreenEffect(MainScreenEffect.Navigate(it.toRoute()))
239238
}
240239
}
241240
}

0 commit comments

Comments
 (0)