File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/src/main/java/to/bitkit/ui/screens/wallets/activity Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ import to.bitkit.ui.theme.AppThemeSurface
7171import to.bitkit.ui.theme.Colors
7272import to.bitkit.ui.utils.copyToClipboard
7373import to.bitkit.ui.utils.getScreenTitleRes
74+ import to.bitkit.utils.Logger
7475import to.bitkit.viewmodels.ActivityDetailViewModel
7576import to.bitkit.viewmodels.ActivityListViewModel
7677
@@ -85,7 +86,11 @@ fun ActivityDetailScreen(
8586) {
8687 val activities by listViewModel.filteredActivities.collectAsStateWithLifecycle()
8788 val item = activities?.find { it.rawId() == route.id }
88- ? : return
89+ if (item == null ) {
90+ Logger .error(" Activity not found" )
91+ return
92+ }
93+
8994
9095 val app = appViewModel ? : return
9196 val copyToastTitle = stringResource(R .string.common__copied)
You can’t perform that action at this time.
0 commit comments