Skip to content

Commit

Permalink
Fix: Show BottomSheet with Successfully Issued Deferred Documents onl…
Browse files Browse the repository at this point in the history
…y if it is not already showing.
  • Loading branch information
gstamatop committed Jul 29, 2024
1 parent 387501f commit b9d8a03
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ class DashboardViewModel(

is DashboardInteractorRetryIssuingDeferredDocumentsPartialState.Result -> {
val successDocs = response.successfullyIssuedDeferredDocuments
if (successDocs.isNotEmpty()) {
if (successDocs.isNotEmpty()
&& !viewState.value.isBottomSheetOpen
&& viewState.value.sheetContent is DashboardBottomSheetContent.DeferredDocumentsReady
) {
showBottomSheet(
sheetContent = DashboardBottomSheetContent.DeferredDocumentsReady(
successfullyIssuedDeferredDocuments = successDocs,
Expand Down

0 comments on commit b9d8a03

Please sign in to comment.