Skip to content

Commit

Permalink
Fix: Show Bottom Sheet for Success Deferred Docs, only if it is not o…
Browse files Browse the repository at this point in the history
…pen, or is open but for other Bottom Sheet Types/Content.
  • Loading branch information
gstamatop committed Jul 30, 2024
1 parent 685a1bd commit 232f0f9
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 232f0f9

Please sign in to comment.