Skip to content

Commit

Permalink
Merge pull request #162 from niscy-eudiw/bugfix/deferred_bottom_sheet
Browse files Browse the repository at this point in the history
Fix: Show Bottom Sheet for Success Deferred Docs, only if it is not o…
  • Loading branch information
stzouvaras authored Jul 30, 2024
2 parents 685a1bd + 232f0f9 commit 943dfbc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,10 @@ class DashboardViewModel(
is DashboardInteractorRetryIssuingDeferredDocumentsPartialState.Result -> {
val successDocs = response.successfullyIssuedDeferredDocuments
if (successDocs.isNotEmpty()
&& !viewState.value.isBottomSheetOpen
&& viewState.value.sheetContent is DashboardBottomSheetContent.DeferredDocumentsReady
&& (!viewState.value.isBottomSheetOpen
|| (viewState.value.isBottomSheetOpen
&& viewState.value.sheetContent !is DashboardBottomSheetContent.DeferredDocumentsReady)
)
) {
showBottomSheet(
sheetContent = DashboardBottomSheetContent.DeferredDocumentsReady(
Expand Down

0 comments on commit 943dfbc

Please sign in to comment.