fix: tapping on sync completed notification navigates to history
This commit is contained in:
@@ -87,6 +87,7 @@ fun WalletScreen(
|
||||
vm : WalletViewModel,
|
||||
nfcVm : NfcViewModel,
|
||||
pendingPaymentHash: MutableState<String?>,
|
||||
pendingNavigateToHistory : MutableState<Boolean>,
|
||||
pendingPaymentUri : MutableState<String?>,
|
||||
lyricist : Lyricist<AppStrings>
|
||||
) {
|
||||
@@ -141,6 +142,15 @@ fun WalletScreen(
|
||||
pendingPaymentHash.value = null
|
||||
}
|
||||
}
|
||||
val navigateToHistory = pendingNavigateToHistory.value
|
||||
LaunchedEffect(navigateToHistory) {
|
||||
if (navigateToHistory) {
|
||||
navController.navigate(ROUTE_HISTORY) {
|
||||
launchSingleTop = true
|
||||
}
|
||||
pendingNavigateToHistory.value = false
|
||||
}
|
||||
}
|
||||
|
||||
val activity = context as MainActivity
|
||||
LaunchedEffect(Unit) {
|
||||
|
||||
Reference in New Issue
Block a user