Skip to content

Commit

Permalink
Fix disconnect ui glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubuid committed Sep 13, 2024
1 parent 886949a commit 448f0fe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ class WalletKitActivity : AppCompatActivity() {

is SignEvent.Disconnect -> {
connectionsViewModel.refreshConnections()
if (navController.currentDestination?.route != Route.Connections.path) {

if (navController.currentDestination?.route != Route.Connections.path &&
navController.currentDestination?.route != Route.SessionProposal.path &&
navController.currentDestination?.route != Route.SessionAuthenticate.path
) {
navController.navigate(Route.Connections.path)
}
}
Expand Down

0 comments on commit 448f0fe

Please sign in to comment.