Skip to content

Commit e561a48

Browse files
committed
fix: hideSheet() triggered on every node startup
1 parent dcc7cba commit e561a48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,8 +1318,6 @@ class AppViewModel @Inject constructor(
13181318
return@launch
13191319
}
13201320

1321-
hideSheet()
1322-
13231321
if (event is Event.PaymentReceived) {
13241322
val activity = activityRepo.findActivityByPaymentId(
13251323
paymentHashOrTxId = event.paymentHash,
@@ -1335,6 +1333,8 @@ class AppViewModel @Inject constructor(
13351333
}
13361334
}
13371335

1336+
hideSheet()
1337+
13381338
_newTransaction.update { details }
13391339
showNewTransaction = true
13401340
}

0 commit comments

Comments
 (0)