Skip to content

Commit 339f4ce

Browse files
committed
fix: hide sheet before navigate
1 parent aac5ba4 commit 339f4ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,10 +1043,10 @@ class AppViewModel @Inject constructor(
10431043
txType = txType,
10441044
retry = true
10451045
).onSuccess { activity ->
1046+
hideNewTransactionSheet()
10461047
_newTransaction.update { it.copy(isLoadingDetails = false) }
10471048
val nextRoute = Routes.ActivityDetail(activity.rawId())
10481049
mainScreenEffect(MainScreenEffect.Navigate(nextRoute))
1049-
hideNewTransactionSheet()
10501050
}.onFailure { e ->
10511051
Logger.error(msg = "Activity not found", context = TAG)
10521052
toast(e)

0 commit comments

Comments
 (0)