Skip to content

Commit 84fc257

Browse files
committed
chore: restore hasSeen profile and contact navigation
1 parent 4fee575 commit 84fc257

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

app/src/main/java/to/bitkit/ui/screens/wallets/HomeScreen.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ fun HomeScreen(
169169
homeViewModel.refreshWidgets()
170170
},
171171
onClickProfile = {
172-
rootNavController.navigate(Routes.Profile)
172+
if (!hasSeenProfileIntro) {
173+
rootNavController.navigate(Routes.ProfileIntro)
174+
} else {
175+
rootNavController.navigate(Routes.CreateProfile)
176+
}
173177
},
174178
onRemoveSuggestion = { suggestion ->
175179
homeViewModel.removeSuggestion(suggestion)
@@ -210,7 +214,11 @@ fun HomeScreen(
210214
}
211215

212216
Suggestion.PROFILE -> {
213-
rootNavController.navigate(Routes.Profile)
217+
if (!hasSeenProfileIntro) {
218+
rootNavController.navigate(Routes.ProfileIntro)
219+
} else {
220+
rootNavController.navigate(Routes.CreateProfile)
221+
}
214222
}
215223

216224
Suggestion.SHOP -> {

0 commit comments

Comments
 (0)